Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1134,10 +1134,10 @@ window.crypto.subtle.encrypt(
//Recommended to use 12 bytes length
iv: window.crypto.getRandomValues(new Uint8Array(12)),

//Additional authentication data (optional)
//Additional authentication data (optional on all browsers except for on IE 11 and Edge which require it with a non-zero value ie: new Uint8Array(1))
additionalData: ArrayBuffer,

//Tag length (optional)
//Tag length (optional on all browsers except for IE 11 and Edge which require it)
tagLength: 128, //can be 32, 64, 96, 104, 112, 120 or 128 (default)
},
key, //from generateKey or importKey above
Expand Down