php微信退款通知 解密

function refund_decrypt($str, $key)
{
    $key = md5($key);
    $str = base64_decode($str);
    $str = openssl_decrypt($str,'aes-256-ecb',$key,OPENSSL_RAW_DATA);
    $len = strlen($str);
    $pad = ord($str[$len - 1]);
    return substr($str, 0, strlen($str) - $pad);
}

  

 

上一篇:tensorflow--conv函数


下一篇:实例化phpExcel类, 导出Excel----数据