An open API service indexing awesome lists of open source software.

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

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