Skip to content

Commit

Permalink
Merge pull request #356 from AlexErrant/patch-1
Browse files Browse the repository at this point in the history
iv should be (only) 12 bytes
  • Loading branch information
sgwilym authored Aug 8, 2024
2 parents 28e7995 + 432ded0 commit 3694adb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debug/keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const derivedKey = await crypto.subtle.deriveKey(

const message = "Hello, there! This is my secret message.";

const iv = crypto.getRandomValues(new Uint8Array(16));
const iv = crypto.getRandomValues(new Uint8Array(12));

const encrypted = await crypto.subtle.encrypt(
{
Expand Down

0 comments on commit 3694adb

Please sign in to comment.