Skip to content

Commit 8fd47bd

Browse files
author
Will Bamberg
committed
let->const
1 parent ef52e27 commit 8fd47bd

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

web-crypto/unwrap-key/pkcs8.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@
101101
The key material is a password supplied by the user.
102102
*/
103103
function getKeyMaterial() {
104-
let password = window.prompt("Enter your password");
105-
let enc = new TextEncoder();
104+
const password = window.prompt("Enter your password");
105+
const enc = new TextEncoder();
106106
return window.crypto.subtle.importKey(
107107
"raw",
108108
enc.encode(password),

web-crypto/unwrap-key/raw.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
The key material is a password supplied by the user.
3838
*/
3939
function getKeyMaterial() {
40-
let password = window.prompt("Enter your password");
41-
let enc = new TextEncoder();
40+
const password = window.prompt("Enter your password");
41+
const enc = new TextEncoder();
4242
return window.crypto.subtle.importKey(
4343
"raw",
4444
enc.encode(password),

web-crypto/wrap-key/jwk.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
The key material is a password supplied by the user.
99
*/
1010
function getKeyMaterial() {
11-
let password = window.prompt("Enter your password");
12-
let enc = new TextEncoder();
11+
const password = window.prompt("Enter your password");
12+
const enc = new TextEncoder();
1313
return window.crypto.subtle.importKey(
1414
"raw",
1515
enc.encode(password),

web-crypto/wrap-key/pkcs8.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
The key material is a password supplied by the user.
99
*/
1010
function getKeyMaterial() {
11-
let password = window.prompt("Enter your password");
12-
let enc = new TextEncoder();
11+
const password = window.prompt("Enter your password");
12+
const enc = new TextEncoder();
1313
return window.crypto.subtle.importKey(
1414
"raw",
1515
enc.encode(password),

web-crypto/wrap-key/raw.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
The key material is a password supplied by the user.
88
*/
99
function getKeyMaterial() {
10-
let password = window.prompt("Enter your password");
11-
let enc = new TextEncoder();
10+
const password = window.prompt("Enter your password");
11+
const enc = new TextEncoder();
1212
return window.crypto.subtle.importKey(
1313
"raw",
1414
enc.encode(password),

web-crypto/wrap-key/spki.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
The key material is a password supplied by the user.
99
*/
1010
function getKeyMaterial() {
11-
let password = window.prompt("Enter your password");
12-
let enc = new TextEncoder();
11+
const password = window.prompt("Enter your password");
12+
const enc = new TextEncoder();
1313
return window.crypto.subtle.importKey(
1414
"raw",
1515
enc.encode(password),

0 commit comments

Comments
 (0)