| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent fb2ccb1 commit e3c4852
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -497,7 +497,7 @@ const key = await crypto.subtle.deriveKey( | |||
| 497 | 497 | ['encrypt', 'decrypt'], | |
| 498 | 498 | ); | |
| 499 | 499 | const plaintext = 'Hello, world!'; | |
| 500 | - const iv = crypto.getRandomValues(new Uint8Array(16)); | ||
| 500 | + const iv = crypto.getRandomValues(new Uint8Array(12)); | ||
| 501 | 501 | const encrypted = await crypto.subtle.encrypt( | |
| 502 | 502 | { name: encryptionAlg, iv }, | |
| 503 | 503 | key, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments