moar language cleanup

This commit is contained in:
Silas 2024-01-30 00:05:52 -05:00
parent dc4935404c
commit 0e431a1283
Signed by: silentsilas
GPG Key ID: 4199EFB7DAA34349
3 changed files with 13 additions and 12 deletions

View File

@ -9,7 +9,8 @@ const TEMPLATE = `
<details open>
<summary>How To Use:</summary>
<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>
</details>

View File

@ -4,11 +4,11 @@ const URL_INPUT_ID = "request-url";
const TEMPLATE = `
<details open>
<summary>How To Use:</summary>
<ul>
<li>Share the URL below with whom you'd like to request 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>They will then generate a new URL with their encrypted data, which only your original device can decrypt.</li>
</ul>
<ol>
<li><strong>Request:</strong> Copy and share the URL below with the person you want to receive data from.</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><strong>Receive:</strong> They send you the newly generated URL. Open it to view the decrypted message. Only your browser can decrypt it.</li>
</ol>
</details>
<form>

View File

@ -11,11 +11,11 @@ const REQUEST_PUBLIC_KEY = "requestPublicKey";
const TEMPLATE = `
<details open>
<summary>How To Use:</summary>
<ul>
<li>Enter the information you'd like to send to the person whom generated this link.</li>
<li>Press "Generate Response" to generate a URL below that has your encrypted message.</li>
<li>Send this generated URL back to them, and only their browser can decrypt the message.</li>
</ul>
<ol>
<li>Enter the information you want to send back to the original requester into the text input below.</li>
<li>Click on 'Generate Response'. This will create a new URL that contains your encrypted message.</li>
<li>Send the newly generated URL back to the original requester. Only their browser will be able to decrypt the message.</li>
</ol>
</details>
<form>
@ -80,7 +80,7 @@ async function encryptData(event: Event) {
MESSAGE_INPUT_ID
) 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);
// Encrypt the message input value using the AES key