Replace createDecipher with createDecipheriv and add a compatibility mode for newer nodejs versions.

This commit is contained in:
Maik Marschner committed 2025-03-26 15:30:03 +01:00
1 parent ac1b554144
commit b2ae16b933
5 files changed
+76 -39

No files matched your search

+2
View File
@@ -10,6 +10,7 @@ module.exports = ({
userId,
hostId,
passphrase,
iv,
keyStoragePath,
} = loadConfig()) => new Client({
url,
@@ -17,5 +18,6 @@ module.exports = ({
userId,
hostId,
passphrase,
iv,
keyStorage: fsKeysStorage(keyStoragePath),
});