manusoftar

Untitled

Oct 20th, 2013
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1.       $iv_size = mcrypt_get_iv_size(MCRYPT_BLOWFISH, MCRYPT_MODE_CBC);
  2.       $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);
  3.       $crypted = @mcrypt_encrypt(MCRYPT_BLOWFISH, $key, $data,MCRYPT_MODE_CBC,$iv);
  4.       $crypted = toHex($iv) . ":" . toHex( $crypted);
  5.       echo  $crypted ;
Advertisement
Add Comment
Please, Sign In to add comment