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: - +
    +
  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