From 0e431a12833b1947520393b219ebdcc0d5ad1b63 Mon Sep 17 00:00:00 2001 From: Silas Date: Tue, 30 Jan 2024 00:05:52 -0500 Subject: [PATCH] moar language cleanup --- src/routes/receive.ts | 3 ++- src/routes/request.ts | 10 +++++----- src/routes/send.ts | 12 ++++++------ 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/routes/receive.ts b/src/routes/receive.ts index aa101b6..9601cb0 100644 --- a/src/routes/receive.ts +++ b/src/routes/receive.ts @@ -9,7 +9,8 @@ const TEMPLATE = `
How To Use:
diff --git a/src/routes/request.ts b/src/routes/request.ts index 602b820..1d38bbd 100644 --- a/src/routes/request.ts +++ b/src/routes/request.ts @@ -4,11 +4,11 @@ const URL_INPUT_ID = "request-url"; const TEMPLATE = `
How To Use: - +
    +
  1. Request: Copy and share the URL below with the person you want to receive data from.
  2. +
  3. Send: The recipient will open the URL, enter their data, and hit 'Generate Response'. This generates a new URL with their encrypted message.
  4. +
  5. Receive: They send you the newly generated URL. Open it to view the decrypted message. Only your browser can decrypt it.
  6. +
diff --git a/src/routes/send.ts b/src/routes/send.ts index 4400412..8e1de48 100644 --- a/src/routes/send.ts +++ b/src/routes/send.ts @@ -11,11 +11,11 @@ const REQUEST_PUBLIC_KEY = "requestPublicKey"; const TEMPLATE = `
How To Use: -
    -
  • Enter the information you'd like to send to the person whom generated this link.
  • -
  • Press "Generate Response" to generate a URL below that has your encrypted message.
  • -
  • Send this generated URL back to them, and only their browser can decrypt the message.
  • -
+
    +
  1. Enter the information you want to send back to the original requester into the text input below.
  2. +
  3. Click on 'Generate Response'. This will create a new URL that contains your encrypted message.
  4. +
  5. Send the newly generated URL back to the original requester. Only their browser will be able to decrypt the message.
  6. +
@@ -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