Microsoft Word - Core PHP Programming Using PHP to Build Dynamic Web Sites

(singke) #1

$code = mcrypt_ofb(MCRYPT_BLOWFISH_128, $key,
$message, MCRYPT_ENCRYPT, $iv);


//pring decrypted message
print(mcrypt_ofb(MCRYPT_BLOWFISH_128, $key, $code,
MCRYPT_DECRYPT, $iv));
?>


Table 9.8. Encryption Algorithms
MCRYPT_3DES
MCRYPT_3WAY
MCRYPT_BLOWFISH_128
MCRYPT_BLOWFISH_192
MCRYPT_BLOWFISH_256
MCRYPT_BLOWFISH_448
MCRYPT_CAST_128
MCRYPT_CAST_256
MCRYPT_DES
MCRYPT_GOST
MCRYPT_IDEA
MCRYPT_LOKI97
MCRYPT_RC2_1024
MCRYPT_RC2_128
MCRYPT_RC2_256
MCRYPT_RC4
MCRYPT_RC6_128
MCRYPT_RC6_192
MCRYPT_RC6_256
MCRYPT_RIJNDAEL_128
MCRYPT_RIJNDAEL_192
MCRYPT_RIJNDAEL_256
MCRYPT_SAFERPLUS
MCRYPT_SAFER_128
MCRYPT_SAFER_64
MCRYPT_SERPENT_128
MCRYPT_SERPENT_192
MCRYPT_SERPENT_256
MCRYPT_TWOFISH_128
MCRYPT_TWOFISH_192
MCRYPT_TWOFISH_256
MCRYPT_XTEA


Regular Expressions

Free download pdf