pyage is an experimental implementation of @FiloSottile and @Benjojo12 's project "age". The spec is currently available as seven-page Google doc at age-encryption.org/v1.
This project is still work-in-progress.
So: Use at your own risk.
Install from pip:
pip install age
Generate a key pair:
mkdir -p ~/.config/age pyage generate > ~/.config/age/keys.txt
Encrypt a file:
pyage encrypt -i hello.txt -o hello.age pubkey:<recipient public key>
Decrypt a file (uses
pyage decrypt -i hello.age
For a real tutorial, see the Tutorial section in the documentation.
The full documentation can be found at pyage.readthedocs.io.