diff --git a/shared/storage.ts b/shared/storage.ts index e3b1aa7c..fb71ff7d 100644 --- a/shared/storage.ts +++ b/shared/storage.ts @@ -25,9 +25,9 @@ class Storage { const HMACofCurrentVC = CryptoJS.AES.decrypt( encryptedHMACofCurrentVC, encryptionKey - ).toString(); - const HMACofVC = CryptoJS.HmacSHA256(encryptionKey, data).toString(); + ).toString(CryptoJS.enc.Utf8); + const HMACofVC = CryptoJS.HmacSHA256(encryptionKey, data).toString(); if (HMACofVC === HMACofCurrentVC) { return data; } else {