Skip to main content

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

The first 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 generate-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

Metadata

Release files for age-plugin-trezor-slip11 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for age-plugin-trezor-slip11 0.1.0
File Size Uploaded
age_plugin_trezor_slip11-0.1.0.tar.gz 11.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for age-plugin-trezor-slip11 0.1.0
File Interpreter ABI Platform
age_plugin_trezor_slip11-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.8 kB

Release files / age_plugin_trezor_slip11-0.1.0.tar.gz

Download URL age_plugin_trezor_slip11-0.1.0.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e300f95e94e6b46382f35da875e9fab195e235173e2e8e4dd5c84cd77d775fb9
BLAKE2b-256 checksum
How to use checksums
788236d42486c794efb11fc00793121ccea40e8931719ace678b79872ea76eec
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.1.0-py3-none-any.whl

Download URL age_plugin_trezor_slip11-0.1.0-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
94753a79bd1d2406f2a1930d33c3f1fcf6778eb01dc28af7cd34e70874c31cef
BLAKE2b-256 checksum
How to use checksums
76b1c609634a83897eb8f111013e266f46e255c1158c5f4f3742d9ba8eb403b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Release history Release notifications | RSS feed

0.2.0

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page