/**
*
* 加密参数
* @author tarylei <tarylei@hotmail.com>
* @version 2014年3月31日 17:57:14
* @param string $param
* @return string $_key
*/
function encryptParam( $param = '' ) {
$_key = '';
$CI = & get_instance ();
$CI->load->library('Hencrypt');
$_key = base64_encode(HEncrypt::encrypt($param));
return $_key;
}
/**
*
* 解析加密参数
* @author tary.lei <tarylei@hotmail.com>
* @version 2014年3月31日 17:56:27
* @param string $key
* @return string $param
*/
function decryptParam ( $key = '' ) {
$param = '';
$CI = & get_instance ();
$CI->load->library('Hencrypt');
$param = Hencrypt::decrypt(base64_decode($key));
return $param;
}