Skip to content

Commit a6574ac

Browse files
save file
1 parent 6e1a166 commit a6574ac

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

blog/26-04-26/x509-certificates-in-js---encrypt-decrypt-data/ex/aes-encrypt-decrypt-browser.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ aes encrypt / decrypt browser
2020

2121
var key = await generateAesKey();
2222
var encrypted = await aesEncrypt(key,blob);
23-
var b64 = blob_b64(encrypted);
23+
var b64 = await blob_b64(encrypted);
2424
console.log('encrypted :');
2525
console.log(b64);
2626
console.log();
@@ -109,7 +109,7 @@ aes encrypt / decrypt browser
109109
//:
110110

111111

112-
function iv_buf_blob(iv,buf){
112+
function iv_buf_blob(iv,buf){debugger;
113113

114114
var n1 = iv.length;
115115
var n = n1+buf.length;
@@ -122,7 +122,7 @@ aes encrypt / decrypt browser
122122
}//iv_buf
123123

124124

125-
async function blob_iv_buf(blob,iv_bits=96){
125+
async function blob_iv_buf(blob,iv_bits=96){debugger;
126126

127127
var n = blob.size;
128128
var buf = await blob.arrayBuffer();

0 commit comments

Comments
 (0)