crypto: force convert IV to urlsafe base64 variant

This commit is contained in:
Abdullah Atta
2023-06-17 19:13:30 +05:00
parent db2d48a083
commit 9bae058d16

View File

@@ -67,7 +67,10 @@ export default class Decryption {
null,
input,
null,
from_base64(cipherData.iv),
from_base64(
cipherData.iv.replace(/\//g, "_").replace(/\+/g, "-"),
base64_variants.URLSAFE_NO_PADDING
),
encryptionKey.key
);