{"ScriptPreparationCode":null,"TestCases":[{"Name":"CTR","Code":"(async () =\u003E {\r\n\tlet counter;\r\n \r\n const message = \u0022vBXGjoJXe9qc/tZIQNI=\u0022;\r\n\r\n const key = await crypto.subtle.importKey(\r\n \u0027raw\u0027,\r\n Uint8Array.from([\r\n 240, 177, 43, 175, 196, 28, 171, 18, 163, 22, 239, 213, 108, 230, 155,\r\n 68,\r\n ]).buffer,\r\n \u0027AES-CTR\u0027,\r\n false,\r\n [\u0027decrypt\u0027]\r\n );\r\n \r\n\tcounter = Uint8Array.from([\r\n 148, 244, 182, 151, 107, 138, 65, 198, 4, 242, 242, 118, 3, 1, 195, 119,\r\n ]);\r\n \r\n const decryptedContent = await window.crypto.subtle.decrypt(\r\n {\r\n name: \u0027AES-CTR\u0027,\r\n counter,\r\n length: 64,\r\n },\r\n key,\r\n Uint8Array.from(atob(message), c =\u003E c.charCodeAt(0))\r\n )\r\n})();","IsDeferred":false},{"Name":"GCM","Code":"(async () =\u003E {\r\n\tlet iv;\r\n \r\n const message = \u0022jKZvuKmLpmooLqb6rWkz1tolUxgj59JCWlQdCdfz\u0022;\r\n\r\n const key = await crypto.subtle.importKey(\r\n \u0027raw\u0027,\r\n Uint8Array.from([\r\n 240, 177, 43, 175, 196, 28, 171, 18, 163, 22, 239, 213, 108, 230, 155,\r\n 68,\r\n ]).buffer,\r\n \u0027AES-GCM\u0027,\r\n false,\r\n [\u0027decrypt\u0027]\r\n );\r\n \r\n\tiv = Uint8Array.from([\r\n 148, 244, 182, 151, 107, 138, 65, 198, 4, 242, 242, 118, 3, 1, 195, 119,\r\n ]);\r\n \r\n const decryptedContent = await window.crypto.subtle.decrypt(\r\n {\r\n name: \u0027AES-GCM\u0027,\r\n iv,\r\n },\r\n key,\r\n Uint8Array.from(atob(message), c =\u003E c.charCodeAt(0))\r\n )\r\n})();","IsDeferred":false},{"Name":"CBC","Code":"(async () =\u003E {\r\n\tlet iv;\r\n \r\n const message = \u0022r35r3IBuFB9cGFzcg8QIWw==\u0022;\r\n\r\n const key = await crypto.subtle.importKey(\r\n \u0027raw\u0027,\r\n Uint8Array.from([\r\n 240, 177, 43, 175, 196, 28, 171, 18, 163, 22, 239, 213, 108, 230, 155,\r\n 68,\r\n ]).buffer,\r\n \u0027AES-CBC\u0027,\r\n false,\r\n [\u0027decrypt\u0027]\r\n );\r\n \r\n\tiv = Uint8Array.from([\r\n 148, 244, 182, 151, 107, 138, 65, 198, 4, 242, 242, 118, 3, 1, 195, 119,\r\n ]);\r\n \r\n const decryptedContent = await window.crypto.subtle.decrypt(\r\n {\r\n name: \u0027AES-CBC\u0027,\r\n iv,\r\n },\r\n key,\r\n Uint8Array.from(atob(message), c =\u003E c.charCodeAt(0))\r\n )\r\n})();","IsDeferred":false}]}