gglcptch_recaptcha_aes_encrypt

Mailhide related code.

Description

gglcptch_recaptcha_aes_encrypt( $val, $ky ); 

Parameters (2)

0. $val
The val.
1. $ky
The ky.

Usage

  1. if ( !function_exists( 'gglcptch_recaptcha_aes_encrypt' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-captcha-recaptcha-by-bestwebsoft/lib/recaptchalib.php'; 
  3.  
  4. // The val. 
  5. $val = null; 
  6.  
  7. // The ky. 
  8. $ky = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = gglcptch_recaptcha_aes_encrypt($val, $ky); 
  12.  

Defined (1)

The function is defined in the following location(s).

/lib/recaptchalib.php  
  1. function gglcptch_recaptcha_aes_encrypt($val, $ky) { 
  2. if (! function_exists ("mcrypt_encrypt")) { 
  3. die ("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed."); 
  4. $mode=MCRYPT_MODE_CBC; 
  5. $enc=MCRYPT_RIJNDAEL_128; 
  6. $val=gglcptch_recaptcha_aes_pad($val); 
  7. return mcrypt_encrypt($enc, $ky, $val, $mode, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0");