mirror of
https://github.com/earthjasonlin/zzz-signal-search-export.git
synced 2024-11-24 14:10:24 +08:00
Compare commits
1 Commits
e83fe42268
...
00e9dbaff3
Author | SHA1 | Date | |
---|---|---|---|
00e9dbaff3 |
@ -142,12 +142,12 @@ const readJSON = async (dataPath, name) => {
|
||||
}
|
||||
|
||||
const hash = (data, type = 'sha256') => {
|
||||
const hmac = crypto.createHmac(type, 'nap')
|
||||
const hmac = crypto.createHmac(type, 'hk4e')
|
||||
hmac.update(data)
|
||||
return hmac.digest('hex')
|
||||
}
|
||||
|
||||
const scryptKey = crypto.scryptSync(userPath, 'nap', 24)
|
||||
const scryptKey = crypto.scryptSync(userPath, 'hk4e', 24)
|
||||
const cipherAes = (data) => {
|
||||
const algorithm = 'aes-192-cbc'
|
||||
const iv = Buffer.alloc(16, 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user