An if I started with 3DES encryption, I thought… why stop? Here is the PHP Version as well. function encrypt3DES($key,$iv,$text_enc){ $block = mcrypt_get_block_size('tripledes', …