Skip to content

Build your personal knowledge base with Trilium Notes

Fix default ivLength in dump-db tool

Nriver9d32cd36eef5
diff --git a/dump-db/inc/decrypt.ts b/dump-db/inc/decrypt.ts
index d7ae92614f..ecbc820b52 100644
--- a/dump-db/inc/decrypt.ts
+++ b/dump-db/inc/decrypt.ts
@@ -16,7 +16,7 @@ function decryptString(dataKey: any, cipherText: any) {
return str;
}
-function decrypt(key: any, cipherText: any, ivLength = 13) {
+function decrypt(key: any, cipherText: any, ivLength = 16) {
if (cipherText === null) {
return null;
}