Skip to content

Commit 7032b53

Browse files
author
Will Bamberg
committed
Make message ID values unique
1 parent 200d120 commit 7032b53

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

web-crypto/import-key/index.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ <h1>Web Crypto: importKey</h1>
3535
<h2 class="import-key-heading">Raw</h2>
3636
<section class="import-key-controls">
3737
<div class="message-control">
38-
<label for="message">Enter a message to encrypt:</label>
39-
<input type="text" id="message" name="message" size="25"
38+
<label for="raw-message">Enter a message to encrypt:</label>
39+
<input type="text" id="raw-message" name="message" size="25"
4040
value="The owl hoots at midnight">
4141
</div>
4242
<div class="ciphertext">Ciphertext:<span class="ciphertext-value"></span></div>
@@ -49,8 +49,8 @@ <h2 class="import-key-heading">Raw</h2>
4949
<h2 class="import-key-heading">PKCS #8</h2>
5050
<section class="import-key-controls">
5151
<div class="message-control">
52-
<label for="message">Enter a message to sign:</label>
53-
<input type="text" id="message" name="message" size="25"
52+
<label for="pkcs8-message">Enter a message to sign:</label>
53+
<input type="text" id="pkcs8-message" name="message" size="25"
5454
value="The tiger prowls at dawn">
5555
</div>
5656
<div class="signature">Signature:<span class="signature-value"></span></div>
@@ -63,8 +63,8 @@ <h2 class="import-key-heading">PKCS #8</h2>
6363
<h2 class="import-key-heading">SubjectPublicKeyInfo</h2>
6464
<section class="import-key-controls">
6565
<div class="message-control">
66-
<label for="message">Enter a message to encrypt:</label>
67-
<input type="text" id="message" name="message" size="25"
66+
<label for="spki-message">Enter a message to encrypt:</label>
67+
<input type="text" id="spki-message" name="message" size="25"
6868
value="The eagle flies at twilight">
6969
</div>
7070
<div class="ciphertext">Ciphertext:<span class="ciphertext-value"></span></div>
@@ -77,8 +77,8 @@ <h2 class="import-key-heading">SubjectPublicKeyInfo</h2>
7777
<h2 class="import-key-heading">JSON Web Key</h2>
7878
<section class="import-key-controls">
7979
<div class="message-control">
80-
<label for="message">Enter a message to sign:</label>
81-
<input type="text" id="message" name="message" size="25"
80+
<label for="jwk-message">Enter a message to sign:</label>
81+
<input type="text" id="jwk-message" name="message" size="25"
8282
value="The bunny hops at teatime">
8383
</div>
8484
<div class="signature">Signature:<span class="signature-value"></span></div>

web-crypto/import-key/jwk.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
in a form we can use for the sign operation.
3434
*/
3535
function getMessageEncoding() {
36-
const messageBox = document.querySelector(".jwk #message");
36+
const messageBox = document.querySelector("#jwk-message");
3737
const message = messageBox.value;
3838
const enc = new TextEncoder();
3939
return enc.encode(message);

web-crypto/import-key/pkcs8.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDD0tPV/du2vftjvXj1t/gXTK39sNBV
5252
in a form we can use for the sign operation.
5353
*/
5454
function getMessageEncoding() {
55-
const messageBox = document.querySelector(".pkcs8 #message");
55+
const messageBox = document.querySelector("#pkcs8-message");
5656
const message = messageBox.value;
5757
const enc = new TextEncoder();
5858
return enc.encode(message);

web-crypto/import-key/raw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
in a form we can use for the encrypt operation.
2323
*/
2424
function getMessageEncoding() {
25-
const messageBox = document.querySelector(".raw #message");
25+
const messageBox = document.querySelector("#raw-message");
2626
const message = messageBox.value;
2727
const enc = new TextEncoder();
2828
return enc.encode(message);

web-crypto/import-key/spki.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAy3Xo3U13dc+xojwQYWoJLCbOQ5fOVY8Llnqc
4949
in a form we can use for the encrypt operation.
5050
*/
5151
function getMessageEncoding() {
52-
const messageBox = document.querySelector(".spki #message");
52+
const messageBox = document.querySelector("#spki-message");
5353
const message = messageBox.value;
5454
const enc = new TextEncoder();
5555
return enc.encode(message);

0 commit comments

Comments
 (0)