fix(SW-2116): do not replace + with - for encrypted output result

This commit is contained in:
Michael Zetterberg
2025-05-07 04:55:37 +02:00
parent 4d16f66605
commit b8e9ed2a58

View File

@@ -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)