Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $iv_size = mcrypt_get_iv_size(MCRYPT_BLOWFISH, MCRYPT_MODE_CBC);
- $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);
- $crypted = @mcrypt_encrypt(MCRYPT_BLOWFISH, $key, $data,MCRYPT_MODE_CBC,$iv);
- $crypted = toHex($iv) . ":" . toHex( $crypted);
- echo $crypted ;
Advertisement
Add Comment
Please, Sign In to add comment