Openssl
Openssl类封装好了Openssl加密解密方法,示例:
<?php
$openssl = new \EasySwoole\Component\Openssl('key','DES-EDE3');
$msg = $openssl->encrypt('仙士可');
var_dump($msg);
$msg = $openssl->decrypt($msg);
var_dump($msg);
输出:
string(24) "Lgx3rlBCPcX+Ke+Whau87g=="
string(9) "仙士可"
当前内容版权归 EasySwoole 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 EasySwoole .