mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
server side encryption WIP
This commit is contained in:
@@ -16,7 +16,7 @@ function decryptDataKey(passwordDerivedKey, encryptedBase64) {
|
||||
const encryptedBytes = utils.fromBase64(encryptedBase64);
|
||||
|
||||
const aes = getAes(passwordDerivedKey);
|
||||
return aes.decrypt(encryptedBytes).slice(4);
|
||||
return Array.from(aes.decrypt(encryptedBytes).slice(4));
|
||||
}
|
||||
|
||||
function encryptDataKey(passwordDerivedKey, plainText) {
|
||||
|
||||
Reference in New Issue
Block a user