//解密方法
public static function aesDe($data){
$sysKey = Config::get('effectim.effectim_crm_config')['CRM']['params']['sysKey'];
$IV = Config::get('effectim.effectim_crm_config')['CRM']['params']['IV'];
return openssl_decrypt(base64_decode($data),'AES-128-CBC', $sysKey, OPENSSL_RAW_DATA, $IV);
}
//加密方法
public static function aesEn($data){
$sysKey = Config::get('effectim.effectim_crm_config')['CRM']['params']['sysKey'];
$IV = Config::get('effectim.effectim_crm_config')['CRM']['params']['IV'];
return base64_encode(@openssl_encrypt($data,'AES-128-CBC',$sysKey,OPENSSL_RAW_DATA,$IV));
}
PHP RSA加密解密方法处理,需要用到K 和V 值 进行解密加密操作, V值可以为空值
最新推荐文章于 2024-08-20 12:21:58 发布