function _recaptcha_aes_pad in reCAPTCHA 8
Same name and namespace in other branches
- 5.2 recaptcha/recaptchalib.php \_recaptcha_aes_pad()
- 6 recaptcha-php-1.11/recaptchalib.php \_recaptcha_aes_pad()
- 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));
}