https://github.com/quchen/vsafe
vsafe - Very Simple Asymmetric File Exchange
https://github.com/quchen/vsafe
Last synced: over 1 year ago
JSON representation
vsafe - Very Simple Asymmetric File Exchange
- Host: GitHub
- URL: https://github.com/quchen/vsafe
- Owner: quchen
- Created: 2019-06-13T12:19:55.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-03-04T09:13:54.000Z (over 6 years ago)
- Last Synced: 2025-01-22T09:09:14.166Z (over 1 year ago)
- Language: Shell
- Size: 20.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
vsafe - Very Simple Asymmetric File Exchange
============================================
Workflow
--------
*Alice* wants to send *Bob* a file.
1. *Bob* generates a keypair.
```sh
vsafe keygen bobs-key
```
2. *Bob* sends *Alice* his pubkey (bobs-key.pub), e.g. via email.
3. *Alice* encrypts her data using *Bob*’s pubkey.
```sh
vsafe encrypt bobs-key.pub alice-secret.txt > encrypted.txt
```
4. *Alice* sends the encrypted file to *Bob* (encrypted.txt).
5. *Bob* decrypts the file using his pubkey. He can do so by following the
instructions contained in the file, or by simply running it as a script,
since it is a runnable decryption program.
```sh
chmod +x encrypted.txt
./encrypted.txt bobs-key > alice-secret.txt
```
Command overview
----------------
- vsafe help
- `vsafe encrypt PUBKEY FILE` – Encrypt FILE to stdout using PUBKEY file
- `vsafe keygen FILE` – Generate keypair: FILE.PRIVATE, FILE.pub
- `vsafe test` – Run the roundtrip test