crypto-js 加密 & Base64

634 阅读1分钟

crypto-js 使用

const hash = CryptoJS.HmacSHA1('string', 'secret');
const signature = CryptoJS.enc.Base64.stringify(hash);