fix(SW-2116): do not replace + with - for encrypted output result
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user