You are here

function _recaptcha_aes_pad in reCAPTCHA 6

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

File

recaptcha-php-1.11/recaptchalib.php, line 206

Code

function _recaptcha_aes_pad($val) {
  $block_size = 16;
  $numpad = $block_size - strlen($val) % $block_size;
  return str_pad($val, strlen($val) + $numpad, chr($numpad));
}