签名算法

This commit is contained in:
2026-03-03 11:44:20 +08:00
parent 88338b60fa
commit 5a94a74590
+1 -1
View File
@@ -14,7 +14,7 @@ class SystemAuth
public static function generateSignature(string $userId, int $timestamp, string $secret): string
{
$data = $userId . $timestamp;
return hash_hmac('sha256', $data, $secret);
return hash_hmac('md5', $data, $secret);
}
/**