Created
January 4, 2026 22:14
-
-
Save robertdfrench/537b7dba765230b2aee5ae4f8fcc79d7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # 1. Generate the encryption Key | |
| # | |
| # This will save the *private* (secret) key to `private_key.age` | |
| # and print the *public* (shareable) key to the terminal | |
| age-keygen -o private_key.age | |
| # 2. Send your public key to your co-conspirators via email or text | |
| # 3. Save your co-conspirators' public keys to a file: | |
| echo "age1ualzj2zuuja23xwmeldmmp669yylclpgnnvp8fj857qj55klh4ns620lxa" > robert.pubkey.age | |
| # 4. Encrypt a file called `document.odf` for distribution | |
| age -o encrypted_document.odt.age -R robert.pubkey.age document.odt | |
| # 5. Email this file to your co-conspirators | |
| # 6. Robert sends you a file called "hello.txt.age" and you want to decrypt it: | |
| age -d -i private_key.age hello.txt.age |
Author
robertdfrench
commented
Jan 4, 2026
Author
scp robertdfrench.com:~/message2.txt.age messag2.txt.age
Author
# To upload:
scp document.odt.age robertdfrench.com:~/document.odt.age
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment