Updates
This commit is contained in:
@@ -31,7 +31,7 @@ export default function decrypt({
|
||||
keyLen,
|
||||
algorithm,
|
||||
bufferAllocSize,
|
||||
} = grabKeys({ encryptionKey });
|
||||
} = grabKeys({ encryptionKey, encryptionSalt });
|
||||
|
||||
if (!encrptKey?.match(/.{8,}/)) {
|
||||
if (debug) console.log("Decrption key is invalid");
|
||||
|
||||
@@ -29,7 +29,7 @@ export default function encrypt({
|
||||
keyLen,
|
||||
algorithm,
|
||||
bufferAllocSize,
|
||||
} = grabKeys({ encryptionKey });
|
||||
} = grabKeys({ encryptionKey, encryptionSalt });
|
||||
|
||||
if (!encrptKey?.match(/.{8,}/)) {
|
||||
console.log("Encryption key is invalid");
|
||||
|
||||
Reference in New Issue
Block a user