thestars Posted May 20, 2009 Share Posted May 20, 2009 I used the following function to encrypt password. function encrypt($text){ $iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CFB); $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND); $key = "Secret"; return base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, $text, MCRYPT_MODE_CFB, $iv)); } But an error occurred saying that the function mcrypt_get_iv_size is undefined.Please help me. Link to comment https://forums.phpfreaks.com/topic/158865-password-encrypt/ Share on other sites More sharing options...
trq Posted May 20, 2009 Share Posted May 20, 2009 Do you have the mcrypt extension installed? Link to comment https://forums.phpfreaks.com/topic/158865-password-encrypt/#findComment-837933 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.