Skip to content

Commit b7a5c48

Browse files
author
Will Bamberg
committed
Add password hint in dialog
1 parent 8fd47bd commit b7a5c48

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web-crypto/unwrap-key/pkcs8.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
The key material is a password supplied by the user.
102102
*/
103103
function getKeyMaterial() {
104-
const password = window.prompt("Enter your password");
104+
const password = window.prompt("Enter your password. The password is: 'correct horse battery staple'.");
105105
const enc = new TextEncoder();
106106
return window.crypto.subtle.importKey(
107107
"raw",

web-crypto/unwrap-key/raw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
The key material is a password supplied by the user.
3838
*/
3939
function getKeyMaterial() {
40-
const password = window.prompt("Enter your password");
40+
const password = window.prompt("Enter your password. The password is 'correct horse battery staple'.");
4141
const enc = new TextEncoder();
4242
return window.crypto.subtle.importKey(
4343
"raw",

0 commit comments

Comments
 (0)