From b8e9ed2a58d0f109ddfbee89da736a245fb31f24 Mon Sep 17 00:00:00 2001 From: Michael Zetterberg Date: Wed, 7 May 2025 04:55:37 +0200 Subject: [PATCH] fix(SW-2116): do not replace + with - for encrypted output result --- apps/scandic-web/utils/encryption.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/scandic-web/utils/encryption.ts b/apps/scandic-web/utils/encryption.ts index e194a672a..e4ea3d6d2 100644 --- a/apps/scandic-web/utils/encryption.ts +++ b/apps/scandic-web/utils/encryption.ts @@ -22,7 +22,7 @@ export function encrypt(originalString: string) { const buffers: Buffer[] = [] buffers.push(cipher.update(paddedStr)) buffers.push(cipher.final()) - const result = Buffer.concat(buffers).toString("base64").replace(/\+/g, "-") + const result = Buffer.concat(buffers).toString("base64") return result } catch (e) { console.log(e)