age and minisign are modern command-line programs which respectively provide support for encryption/decryption and signing/verification of data. It is possible to provide programmatic access to their functionality by spawning separate processes to run them and then communicating with those processes from your program.
This project, pagesign
(for 'Python-age-sign'), implements a Python library which
takes care of the internal details and allows its users to generate and manage keys,
encrypt and decrypt data, and sign and verify messages using age
and minisign
.
This library does not install age
or minisign
for you: you will need to
install them yourself (see the documentation for more
information). It expects functionality found in age v1.0.0 or later, and minisign v0.8
or later. Three programs are expected to be found on the PATH: age-keygen
, age
and minisign
. If any of them aren't found, this library won't work as expected.
You can install this package from the Python Package Index (pyPI) by running:
pip install pagesign
To install this package from a source distribution archive, do the following:
- Extract all the files in the distribution archive to some directory on your system.
- In that directory, run
pip install .
, referencing a suitablepip
(e.g. one from a specific venv which you want to install to). - Optionally, run
python test_pagesign.py
to ensure that the package is working as expected.
- The developers of
age
andminisign
.
https://docs.red-dove.com/pagesign/
Released: Not yet.
- Add the
CryptException
class and code to raise it when an operation fails. - Make a change so that
clear_identities()
now takes no arguments. - Add
encrypt_mem()
anddecrypt_mem()
functions to perform operations in memory. - Use a better algorithm for encryption and signing at the same time.
Released: 2021-12-05
- Initial release.