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

This commit is contained in:
Maik Marschner
2025-03-26 15:03:36 +01:00
parent ac1b554144
commit b2ae16b933
5 changed files with 76 additions and 39 deletions

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),
});