File tree Expand file tree Collapse file tree 4 files changed +4
-8
lines changed
web-crypto/encrypt-decrypt Expand file tree Collapse file tree 4 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 44
44
}
45
45
46
46
/*
47
- Fetch the encoded message and decrypt it.
47
+ Fetch the ciphertext and decrypt it.
48
48
Write the decrypted message into the "Decrypted" box.
49
49
*/
50
50
async function decryptMessage ( key ) {
51
- let encoded = getMessageEncoding ( ) ;
52
51
let decrypted = await window . crypto . subtle . decrypt (
53
52
{
54
53
name : "AES-CBC" ,
Original file line number Diff line number Diff line change 45
45
}
46
46
47
47
/*
48
- Fetch the encoded message and decrypt it.
48
+ Fetch the ciphertext and decrypt it.
49
49
Write the decrypted message into the "Decrypted" box.
50
50
*/
51
51
async function decryptMessage ( key ) {
52
- let encoded = getMessageEncoding ( ) ;
53
52
let decrypted = await window . crypto . subtle . decrypt (
54
53
{
55
54
name : "AES-CTR" ,
Original file line number Diff line number Diff line change 44
44
}
45
45
46
46
/*
47
- Fetch the encoded message and decrypt it.
47
+ Fetch the ciphertext and decrypt it.
48
48
Write the decrypted message into the "Decrypted" box.
49
49
*/
50
50
async function decryptMessage ( key ) {
51
- let encoded = getMessageEncoding ( ) ;
52
51
let decrypted = await window . crypto . subtle . decrypt (
53
52
{
54
53
name : "AES-GCM" ,
Original file line number Diff line number Diff line change 40
40
}
41
41
42
42
/*
43
- Fetch the encoded message and decrypt it.
43
+ Fetch the ciphertext and decrypt it.
44
44
Write the decrypted message into the "Decrypted" box.
45
45
*/
46
46
async function decryptMessage ( key ) {
47
- let encoded = getMessageEncoding ( ) ;
48
47
let decrypted = await window . crypto . subtle . decrypt (
49
48
{
50
49
name : "RSA-OAEP"
You can’t perform that action at this time.
0 commit comments