diff --git a/functions/mcrypt.xml b/functions/mcrypt.xml index b296d92731..668d71dae5 100644 --- a/functions/mcrypt.xml +++ b/functions/mcrypt.xml @@ -60,7 +60,7 @@ $encrypted_data = mcrypt_ecb (MCRYPT_TripleDES, $key, $input, MCRYPT_ENCRYPT); $key = "this is a very secret key"; $input = "Let us meet at 9 o'clock at the secret place."; -$td = mcrypt_open_module (MCRYPT_TripleDES, "", MCRYPT_MODE_ECB); +$td = mcrypt_module_open (MCRYPT_TripleDES, "", MCRYPT_MODE_ECB); $iv = mcrypt_create_iv (mcrypt_enc_get_iv_size ($td), MCRYPT_RAND); mcrypt_generic_init ($td, $key, $iv); $encrypted_data = mcrypt_generic ($td, $input); @@ -134,7 +134,7 @@ mcrypt_generic_end ($td); mcrypt-2.2.x API is that you can access the cipher from PHP with MCRYPT_ciphername. With the mcrypt-2.4.x API these constants also work, but it is possible to specify the name of the cipher as - a string with a call to mcrypt_open_module. + a string with a call to mcrypt_module_open. Here is a short list of ciphers which are currently supported by