From 6fc7af7686dc576748879adac0e6dea8d3bc052b Mon Sep 17 00:00:00 2001 From: Matthew Francis-Landau Date: Tue, 17 Jan 2023 22:27:49 -0500 Subject: [PATCH] combine into a single file --- generate.sh | 9 + source.html | 501 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 510 insertions(+) create mode 100755 generate.sh create mode 100644 source.html diff --git a/generate.sh b/generate.sh new file mode 100755 index 0000000..eb78ff1 --- /dev/null +++ b/generate.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +awk '/openpgp.min.js/ { + print ""; +next; +} +{print}' < source.html > index.html diff --git a/source.html b/source.html new file mode 100644 index 0000000..8cd2fbf --- /dev/null +++ b/source.html @@ -0,0 +1,501 @@ + + + + Crypto test + + + + + + +
+ +

Description

+ +

+ This is designed to encrypt messages which can be passed along in the + event of death. This webpage is entirely self contained, which means that + it can be used offline and saved to a file. This webpage generates + encryption keys using OpenPGP.js and + Shamir's + Secret Sharing. This means that a your data is encrypted such that it + requires multiple description keys to descrypt a message. For + example, you can generate 10 encryption keys such that any 3 encryption + keys can be used to decrypt the data. +

+ +

+ To see an example of how this works, click the + + button. +

+ +

+ If you have a decryption key and want to decrypt a message, go to + the Decrypt Message section below. +

+ + + + +
+

Generate Encryption Key

+ +

Name:

+

Number of private keys to generate:

+

Number of private keys required to decrypt:

+

+ +
+ +

Public key used for encryption: +
You should save the public key somewhere safe. The Public Key + can only be used to encrypt messages. You can encrypt messages in + the
Encryption section of this webpage or by + using PGP software on your computer.
+ +

+ + +

+ Private keys for decryption:
The Private key can be used to + decrypt a message. Ideally, each trusted individual will be given 1 of + these keys. Note, anyone who gets access to more + than 3 of these private keys + (as configured above) can decrypt all of your messages. + + +
+

    +
  1. +
  2. +
+

+ +
+

Encrypt Message

+ +

Public Key used for Encryption:
+ +

+ +

Message to Encrypt:
+ +

+

+ +

Encrypted data:
+ +

+ + +
+

Decrypt Message

+ +

Decryption Keys: +

    +
  1. +
  2. +
  3. +
+
+
+

+ +

Encrypted message:
+ +

+ +

+ +

Decrypted message:
+ +

+ +
+
+ + + + + + + + +