feat: WEB-210 Updated lang type

This commit is contained in:
Hrishikesh Vaipurkar
2024-07-03 09:51:53 +02:00
parent 1f53b29a69
commit 3f69eda17f
2 changed files with 10 additions and 9 deletions

View File

@@ -13,8 +13,8 @@ export default function encryptValue(originalString: string) {
let paddingSize =
bufferKey.length - (bufferString.length % bufferKey.length)
let paddedStr = Buffer.concat([bufferString, Buffer.alloc(paddingSize, 0)])
result = cipher.update(paddedStr).toString("base64").replace(/\+/g, "-")
cipher.final()
result = cipher.update(paddedStr).toString("base64")
result = (result + cipher.final("base64")).replace(/\+/g, "-")
} catch (e) {
console.log(e)
}