You are here

function _recaptcha_aes_encrypt in reCAPTCHA 7

Same name and namespace in other branches
  1. 8 recaptcha-php-1.11/recaptchalib.php \_recaptcha_aes_encrypt()
  2. 5.2 recaptcha/recaptchalib.php \_recaptcha_aes_encrypt()
  3. 6 recaptcha-php-1.11/recaptchalib.php \_recaptcha_aes_encrypt()
1 call to _recaptcha_aes_encrypt()
recaptcha_mailhide_url in recaptcha-php-1.11/recaptchalib.php

File

recaptcha-php-1.11/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");
}