moar language cleanup
This commit is contained in:
parent
dc4935404c
commit
0e431a1283
|
@ -9,7 +9,8 @@ const TEMPLATE = `
|
||||||
<details open>
|
<details open>
|
||||||
<summary>How To Use:</summary>
|
<summary>How To Use:</summary>
|
||||||
<ul>
|
<ul>
|
||||||
<li>If someone used your unique URL to generate this response URL, you should see the decrypted message below.</li>
|
<li>If someone used your unique request URL to generate this response URL, you should see the decrypted message below.</li>
|
||||||
|
<li>Be sure to open this from the same browser you used to generate the original request URL.</li>
|
||||||
</ul>
|
</ul>
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
|
@ -4,11 +4,11 @@ const URL_INPUT_ID = "request-url";
|
||||||
const TEMPLATE = `
|
const TEMPLATE = `
|
||||||
<details open>
|
<details open>
|
||||||
<summary>How To Use:</summary>
|
<summary>How To Use:</summary>
|
||||||
<ul>
|
<ol>
|
||||||
<li>Share the URL below with whom you'd like to request data from.</li>
|
<li><strong>Request:</strong> Copy and share the URL below with the person you want to receive data from.</li>
|
||||||
<li>When the recipient opens the URL, they will be able to enter the data they'd like to send to you.</li>
|
<li><strong>Send:</strong> The recipient will open the URL, enter their data, and hit 'Generate Response'. This generates a new URL with their encrypted message.</li>
|
||||||
<li>They will then generate a new URL with their encrypted data, which only your original device can decrypt.</li>
|
<li><strong>Receive:</strong> They send you the newly generated URL. Open it to view the decrypted message. Only your browser can decrypt it.</li>
|
||||||
</ul>
|
</ol>
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<form>
|
<form>
|
||||||
|
|
|
@ -11,11 +11,11 @@ const REQUEST_PUBLIC_KEY = "requestPublicKey";
|
||||||
const TEMPLATE = `
|
const TEMPLATE = `
|
||||||
<details open>
|
<details open>
|
||||||
<summary>How To Use:</summary>
|
<summary>How To Use:</summary>
|
||||||
<ul>
|
<ol>
|
||||||
<li>Enter the information you'd like to send to the person whom generated this link.</li>
|
<li>Enter the information you want to send back to the original requester into the text input below.</li>
|
||||||
<li>Press "Generate Response" to generate a URL below that has your encrypted message.</li>
|
<li>Click on 'Generate Response'. This will create a new URL that contains your encrypted message.</li>
|
||||||
<li>Send this generated URL back to them, and only their browser can decrypt the message.</li>
|
<li>Send the newly generated URL back to the original requester. Only their browser will be able to decrypt the message.</li>
|
||||||
</ul>
|
</ol>
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<form>
|
<form>
|
||||||
|
@ -80,7 +80,7 @@ async function encryptData(event: Event) {
|
||||||
MESSAGE_INPUT_ID
|
MESSAGE_INPUT_ID
|
||||||
) as HTMLInputElement;
|
) as HTMLInputElement;
|
||||||
|
|
||||||
// Retrieve the AES key from local storage
|
// Derive the AES key from your private key and the recipient's public key
|
||||||
const aesKey = await deriveSharedSecret(keyPairB.privateKey, publicA);
|
const aesKey = await deriveSharedSecret(keyPairB.privateKey, publicA);
|
||||||
|
|
||||||
// Encrypt the message input value using the AES key
|
// Encrypt the message input value using the AES key
|
||||||
|
|
Loading…
Reference in New Issue