mirror of
https://github.com/earthjasonlin/zzz-signal-search-export.git
synced 2024-11-24 06:00:26 +08:00
Compare commits
3 Commits
00e9dbaff3
...
e83fe42268
Author | SHA1 | Date | |
---|---|---|---|
e83fe42268 | |||
f9e74b4fb8 | |||
84179ccc8d |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "zzz-signal-search-export",
|
"name": "zzz-signal-search-export",
|
||||||
"version": "1.0.4",
|
"version": "1.0.5",
|
||||||
"main": "./dist/electron/main/main.js",
|
"main": "./dist/electron/main/main.js",
|
||||||
"author": "earthjasonlin <https://git.loliquq.cn/earthjasonlin>",
|
"author": "earthjasonlin <https://git.loliquq.cn/earthjasonlin>",
|
||||||
"homepage": "https://github.com/earthjasonlin/zzz-signal-search-export",
|
"homepage": "https://github.com/earthjasonlin/zzz-signal-search-export",
|
||||||
|
@ -142,12 +142,12 @@ const readJSON = async (dataPath, name) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const hash = (data, type = 'sha256') => {
|
const hash = (data, type = 'sha256') => {
|
||||||
const hmac = crypto.createHmac(type, 'hk4e')
|
const hmac = crypto.createHmac(type, 'nap')
|
||||||
hmac.update(data)
|
hmac.update(data)
|
||||||
return hmac.digest('hex')
|
return hmac.digest('hex')
|
||||||
}
|
}
|
||||||
|
|
||||||
const scryptKey = crypto.scryptSync(userPath, 'hk4e', 24)
|
const scryptKey = crypto.scryptSync(userPath, 'nap', 24)
|
||||||
const cipherAes = (data) => {
|
const cipherAes = (data) => {
|
||||||
const algorithm = 'aes-192-cbc'
|
const algorithm = 'aes-192-cbc'
|
||||||
const iv = Buffer.alloc(16, 0)
|
const iv = Buffer.alloc(16, 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user