Skip to content

Commit

Permalink
移除依赖 crypto-js
Browse files Browse the repository at this point in the history
  • Loading branch information
wangliang181230 committed Nov 20, 2024
1 parent 112997c commit 952e21f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
3 changes: 0 additions & 3 deletions packages/mitmproxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,5 @@
"stream-throttle": "^0.1.3",
"through2": "^4.0.2",
"tunnel-agent": "^0.6.0"
},
"devDependencies": {
"crypto-js": "^4.2.0"
}
}
13 changes: 9 additions & 4 deletions packages/mitmproxy/test/sha256Test.js
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 952e21f

Please sign in to comment.