本文整理汇总了PHP中endecrypt函数的典型用法代码示例。如果您正苦于以下问题:PHP endecrypt函数的具体用法?PHP endecrypt怎么用?PHP endecrypt使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了endecrypt函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: rc4decrypt
/**
* rc4decrypt
*
* @param string $data Data to decrypt.
* @return string The now decrypted data.
*/
function rc4decrypt($data)
{
return endecrypt(get_site_identifier(), $data, 'de');
}
示例2: rc4decrypt
/**
* rc4decrypt
*
* @param string $data ?
* @return string
* @todo Finish documenting this function
*/
function rc4decrypt($data)
{
$password = 'nfgjeingjk';
return endecrypt($password, $data, 'de');
}
示例3: rc4decrypt
public static function rc4decrypt($data)
{
$password = 'knfgjeingj';
return endecrypt($password, $data, 'de');
}
示例4: rc4decrypt
/**
* rc4decrypt
*
* Please note that in this version of moodle that the default for rc4encryption is
* using the slightly more secure password key. There may be an issue when upgrading
* from an older version of moodle.
*
* @todo MDL-31836 Remove the old password key in version 2.4
* Code also needs to be changed in sessionlib.php
* @see get_moodle_cookie()
* @see set_moodle_cookie()
*
* @param string $data Data to decrypt.
* @param bool $usesecurekey Lets us know if we are using the old or new secure password key.
* @return string The now decrypted data.
*/
function rc4decrypt($data, $usesecurekey = true)
{
if (!$usesecurekey) {
$passwordkey = 'nfgjeingjk';
} else {
$passwordkey = get_site_identifier();
}
return endecrypt($passwordkey, $data, 'de');
}
示例5: rc4decrypt
/**
* rc4decrypt
*
* @todo Finish documenting this function
*
* @param string $data Data to decrypt
* @return string The now decrypted data
*/
function rc4decrypt($data)
{
$password = get_site_identifier();
return endecrypt($password, $data, 'de');
}