cryptoUtils.decrypt alligned with encrypt in regards of handling extra space in password file
This commit is contained in:
parent
fc482e9729
commit
780fdae63e
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue