feat: 后端初始化2

This commit is contained in:
2026-07-28 15:43:27 +08:00
parent dfe0d6bd95
commit 53305757f8
26 changed files with 734 additions and 36 deletions
+9
View File
@@ -0,0 +1,9 @@
import CryptoJS from 'crypto-js'
export const sha256 = (value: string) => {
return CryptoJS.SHA256(value).toString(CryptoJS.enc.Hex)
}
export const createBridgeSignature = (clientId: string, clientSecret: string, timestamp: string) => {
return sha256(`${clientId}${clientSecret}${timestamp}${clientSecret}`)
}