diff --git a/app/server/utils/crypto.ts b/app/server/utils/crypto.ts index 7acac22..b4e338e 100644 --- a/app/server/utils/crypto.ts +++ b/app/server/utils/crypto.ts @@ -47,7 +47,7 @@ const decrypt = async (encryptedData: string) => { return encryptedData; } - const secret = await Bun.file(RESTIC_PASS_FILE).text(); + const secret = (await Bun.file(RESTIC_PASS_FILE).text()).trim(); const parts = encryptedData.split(":").slice(1); // Remove prefix const saltHex = parts.shift() as string;