age-plugin-trezor-slip11
This age plugin allows you to encrypt data using a Trezor hardware wallet.
Compared to other projects, this one is based on SLIP-0011 and does symmetric encryption.
Usage
Install the plugin:
pip install age-plugin-trezor-slip11
The next step is to generate an identity, which will represent our secret key. Identities generated by this plugin don't contain any secret information, they only contain parameters for tweaking encryption.
The KEY parameter in the example bellow is what will be displayed on the device's screen when encrypting
or decrypting messages.
age-plugin-trezor-slip11 encode-identity --key=KEY > identity.txt
You can then encrypt or decrypt messages by passing the generated identity to age:
age -i ./identity.txt -e -a <<<'super secret' > encrypted.age
age -i ./identity.txt -d < ./encrypted.age
Running tests
# from the root of the project
pip install pytest
pytest # run tests, excluding those depending on a connection with a device...
pytest --use-device # ... or including all tests
Development
For debugging, set the environment variable AGE_PLUGIN_TREZOR_SLIP11_DEBUG_FILE=/path/to/log/file.
For using a fake backend instead of connecting to a device, set AGE_PLUGIN_TREZOR_SLIP11_UNSAFE_TEST_MODE=true.
References
- Plugin interface for age
- SLIP-0011 : key/value encryption using a hardware wallet
Metadata
Release files for age-plugin-trezor-slip11 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| age_plugin_trezor_slip11-0.2.0.tar.gz | 11.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| age_plugin_trezor_slip11-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.0 kB
Release files / age_plugin_trezor_slip11-0.2.0.tar.gz
| Download URL | age_plugin_trezor_slip11-0.2.0.tar.gz |
|---|---|
| Size | 11.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7cc6cdd4fd6f2dd408751807c38f4c69dae8c26bf73e15147bfd402971483b61
|
|
BLAKE2b-256 checksum How to use checksums |
61b1dd33f075eacc67e54e76f3e8972363214259bfc6ed72514e70d0a641fc1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.0
|
Release files / age_plugin_trezor_slip11-0.2.0-py3-none-any.whl
| Download URL | age_plugin_trezor_slip11-0.2.0-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
55b9b9e15e7d5f9a090439ff1ccfaee4106e8443a83da3e62ca14e7600f69ec5
|
|
BLAKE2b-256 checksum How to use checksums |
cfa96a8ce4f3c1e830ec42c7615fbfe44720f4292baa763522ac0d9aedaa4fe9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.0
|