https://github.com/jojonas/pyage
Actually good encryption. In Python.
https://github.com/jojonas/pyage
Last synced: 4 months ago
JSON representation
Actually good encryption. In Python.
- Host: GitHub
- URL: https://github.com/jojonas/pyage
- Owner: jojonas
- License: mit
- Created: 2019-09-18T19:36:54.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-11-13T18:31:14.000Z (over 2 years ago)
- Last Synced: 2025-12-22T00:20:51.657Z (6 months ago)
- Language: Python
- Homepage:
- Size: 1.58 MB
- Stars: 33
- Watchers: 4
- Forks: 4
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# pyage
[](https://github.com/jojonas/pyage/actions?workflow=Build+and+Test)
[](https://github.com/jojonas/pyage/actions?workflow=Compatibility%20with%20FiloSottile/age)
[](https://pyage.readthedocs.io/en/latest/?badge=latest)


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](https://age-encryption.org/v1).
This project is still work-in-progress.
⚠️ pyage is not intended to be a secure age implementation!
My original intention was to better understand the spec, find mistakes early and provide a redundant implementation for validation. I'm not a cryptographer (IANAC) and did not (yet) find the time to address implementation-specific security issues (such as DoS attacks or side-channel attacks).
So:
*Use at your own risk.*
## Quick Start
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:
Decrypt a file (uses `~/.config/age/keys.txt`):
pyage decrypt -i hello.age
For a real tutorial, see [the Tutorial section in the documentation](https://pyage.readthedocs.io/en/latest/tutorials.html).
## Documentation
The full documentation can be found at [pyage.readthedocs.io](https://pyage.readthedocs.io/en/latest/index.html).