You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
Avoid use of Buffer as it does not exist in the Web natively (#4569)
This commit is contained in:
committed by
GitHub
parent
1cad6f4451
commit
beb3721e7a
@@ -67,7 +67,7 @@ export default async function encryptAESSecretStorageItem(
|
||||
|
||||
return {
|
||||
iv: encodeBase64(iv),
|
||||
ciphertext: encodeBase64(ciphertext),
|
||||
mac: encodeBase64(hmac),
|
||||
ciphertext: encodeBase64(new Uint8Array(ciphertext)),
|
||||
mac: encodeBase64(new Uint8Array(hmac)),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user