提交 64d4680e 编写于 作者: 李光春's avatar 李光春

- 通知签名规则和加密方法,使用aes方式

- 更新IP数据库
上级 8f6e515f
......@@ -206,7 +206,7 @@ class ApiController extends stdClass
* @param int $timestamp
* @return bool|string
*/
public function encrypt($data, string $name, int $timestamp)
private function encrypt($data, string $name, int $timestamp)
{
if (!empty(is_array($data))) $data = json_encode($data);
return urlencode(base64_encode(openssl_encrypt($data, 'AES-128-CBC', config("dtapp.md5.{$name}"), 1, config("dtapp.md5.bcw") . $timestamp)));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册