function _recaptcha_aes_encrypt in reCAPTCHA 5.2
Same name and namespace in other branches
- 8 recaptcha-php-1.11/recaptchalib.php \_recaptcha_aes_encrypt()
- 6 recaptcha-php-1.11/recaptchalib.php \_recaptcha_aes_encrypt()
- 7 recaptcha-php-1.11/recaptchalib.php \_recaptcha_aes_encrypt()
1 call to _recaptcha_aes_encrypt()
- recaptcha_mailhide_url in recaptcha/
recaptchalib.php
File
- recaptcha/
recaptchalib.php, line 214
Code
function _recaptcha_aes_encrypt($val, $ky) {
if (!function_exists("mcrypt_encrypt")) {
die("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed.");
}
$mode = MCRYPT_MODE_CBC;
$enc = MCRYPT_RIJNDAEL_128;
$val = _recaptcha_aes_pad($val);
return mcrypt_encrypt($enc, $ky, $val, $mode, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0");
}