From 801477d5b5b0aa970c606c3934f9258285158a0f Mon Sep 17 00:00:00 2001 From: Menem Salama Date: Tue, 17 Apr 2018 14:31:09 +0200 Subject: [PATCH] Fix `AES-CTR - decrypt` code example in README.md create `ArrayBuffer` with `new` keyword --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ee36558..c184335 100644 --- a/README.md +++ b/README.md @@ -764,7 +764,7 @@ window.crypto.subtle.encrypt( window.crypto.subtle.decrypt( { name: "AES-CTR", - counter: ArrayBuffer(16), //The same counter you used to encrypt + counter: new ArrayBuffer(16), //The same counter you used to encrypt length: 128, //The same length you used to encrypt }, key, //from generateKey or importKey above