本文整理汇总了PHP中_recaptcha_aes_encrypt函数的典型用法代码示例。如果您正苦于以下问题:PHP _recaptcha_aes_encrypt函数的具体用法?PHP _recaptcha_aes_encrypt怎么用?PHP _recaptcha_aes_encrypt使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了_recaptcha_aes_encrypt函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: recaptcha_mailhide_url
function recaptcha_mailhide_url($pubkey, $privkey, $email)
{
if ($pubkey == '' || $pubkey == null || $privkey == "" || $privkey == null) {
die("To use reCAPTCHA Mailhide, you have to sign up for a public and private key, " . "you can do so at <a href='http://www.google.com/recaptcha/mailhide/apikey'>http://www.google.com/recaptcha/mailhide/apikey</a>");
}
$ky = pack('H*', $privkey);
$cryptmail = _recaptcha_aes_encrypt($email, $ky);
return "http://www.google.com/recaptcha/mailhide/d?k=" . $pubkey . "&c=" . _recaptcha_mailhide_urlbase64($cryptmail);
}
示例2: recaptcha_mailhide_url
function recaptcha_mailhide_url($pubkey, $privkey, $email)
{
if ($pubkey == '' || $pubkey == null || $privkey == "" || $privkey == null) {
return false;
}
$ky = pack('H*', $privkey);
$cryptmail = _recaptcha_aes_encrypt($email, $ky);
return "http://www.google.com/recaptcha/mailhide/d?k=" . $pubkey . "&c=" . _recaptcha_mailhide_urlbase64($cryptmail);
}
示例3: recaptcha_mailhide_url
function recaptcha_mailhide_url($pubkey, $privkey, $email)
{
if ($pubkey == '' || $pubkey == null || $privkey == '' || $privkey == null) {
die('To use reCAPTCHA Mailhide, you have to sign up for a public and private key, ' . 'you can do so at <a href="http://mailhide.recaptcha.net/apikey">http://mailhide.recaptcha.net/apikey</a>');
}
$ky = pack('H*', $privkey);
$cryptmail = _recaptcha_aes_encrypt($email, $ky);
return 'http://mailhide.recaptcha.net/d?k=' . $pubkey . '&c=' . _recaptcha_mailhide_urlbase64($cryptmail);
}