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. Quote Link to comment Share on other sites More sharing options...
trq Posted May 20, 2009 Share Posted May 20, 2009 Do you have the mcrypt extension installed? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.