mirror of
https://github.com/nicotsx/ironmount.git
synced 2025-12-10 12:10:51 +01:00
cryptoUtils.decrypt alligned with encrypt in regards of handling extra space in password file
This commit is contained in:
committed by
Nicolas Meienberger
parent
fc482e9729
commit
780fdae63e
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user