feat: 后端初始化2
This commit is contained in:
@@ -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}`)
|
||||
}
|
||||
Reference in New Issue
Block a user