CryptoJS库使用 GitHub地址:https://github.com/brix/crypto-js npm下载:npm install crypto-js // 字符串转字节数组 var wordArray = CryptoJS.enc.Utf8.parse("3de416078ec4a47a") var wordArray = CryptoJS.enc.Hex.parse("3de416078ec4a47a") var wordArray = CryptoJS.enc.Base64.parse("3de416078ec4a47a") var wordArray = CryptoJS.enc.Latin1.parse("3de416078ec4a47a") // 字节数组转为字符串 var str = CryptoJS.enc.Utf8.stringify(wordArray)
// 3de416078ec4a47a console.log(CryptoJS.enc.Utf8.stringify({ words:[862217524, 825634871, 946168628, 1630812001], sigBytes: 16 }))
标签:AES,enc,key,Js,parse,wordArray,var,CryptoJS,3de416078ec4a47a From: https://www.cnblogs.com/meipu/p/16926698.html