王良
2 days ago
2 changed files with 9 additions and 7 deletions
@ -1,5 +1,10 @@
|
||||
const CryptoJs = require('crypto-js') |
||||
// 需要时,在 package.json 中添加以下依赖:
|
||||
// "devDependencies": {
|
||||
// "crypto-js": "^4.2.0"
|
||||
// }
|
||||
|
||||
const ret = CryptoJs.SHA256('111111111111') |
||||
console.log(ret.toString(CryptoJs.enc.Base64)) |
||||
console.log(1 / 2) |
||||
// const CryptoJs = require('crypto-js')
|
||||
//
|
||||
// const ret = CryptoJs.SHA256('111111111111')
|
||||
// console.log(ret.toString(CryptoJs.enc.Base64))
|
||||
// console.log(1 / 2)
|
||||
|
Loading…
Reference in new issue