Skip to main content

Actually good encryption. In Python.

Project description

pyage

Build and Test Compatibility Check Documentation Status License

pyage screenshot

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.

⚠️ 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
$ pipenv run pyage generate > ~/.config/age/keys.txt

Encrypt a file:

$ pipenv run pyage encrypt -i hello.txt -o hello.age pubkey:<recipient public key>

Decrypt a file (uses ~/.config/age/keys.txt):

$ pipenv run pyage decrypt -i hello.age

For a real tutorial, see the Tutorial section in the documentation.

Documentation

The full documentation can be found at pyage.readthedocs.io.

Development

TODO

  • Error handling
  • Proper logging (to stderr)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for age, version 0.4.0
Filename, size File type Python version Upload date Hashes
Filename, size age-0.4.0-py3-none-any.whl (38.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size age-0.4.0.tar.gz (44.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page