mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
crypto: force convert IV to urlsafe base64 variant
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user