Skip to content

Commit ab219d6

Browse files
committed
🚑 simple commit
1 parent e8d9e33 commit ab219d6

File tree

2 files changed

+38
-74
lines changed

2 files changed

+38
-74
lines changed

package-lock.json

Lines changed: 35 additions & 73 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils/password.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import * as CryptoJS from 'crypto-js'
22

3+
const securityKey = '==BallCat-Auth=='
4+
35
export const encryption = (pass) => {
46
// 密码加密
5-
const key = CryptoJS.enc.Latin1.parse('==BallCat-Auth==')
7+
const key = CryptoJS.enc.Latin1.parse(securityKey)
68
return CryptoJS.AES.encrypt(
79
pass,
810
key, {

0 commit comments

Comments
 (0)