Fix huge ugly typo in IV sizes...

This commit is contained in:
2024-09-10 00:33:00 +02:00
parent f51b29f4c3
commit 20ab37068d
+1 -1
View File
@@ -24,7 +24,7 @@ export default class SecretBox {
public static async encrypt(data: Uint8Array, key: CryptoKey): Promise<SecretBox> {
log.trace('encrypt')
const iv = crypto.getRandomValues(new Uint8Array(11))
const iv = crypto.getRandomValues(new Uint8Array(12))
const cipher = await crypto.subtle.encrypt(
{
name: consts.ENCRYPTION,