Skip to main content

l3io-age-passphrase

Streaming age encryption and decryption under a passphrase for Python 3.11+.

Output is a standard age v1 file with a sole scrypt recipient. Operators recover plaintext with stock age -d (interactive passphrase prompt). This package exists because pyrage streams recipient mode but only buffers passphrase payloads (pyrage#172).

Used by l3io-wordpress-database for multi-GB dump/archive encryption.

Install

Wheels are published on GitHub Releases (not PyPI yet).

# Example: Linux x86_64 manylinux abi3 wheel from the latest release
uv pip install \
  "https://github.com/LiquidLogicLabs/l3io-age-passphrase/releases/download/v0.1.0/l3io_age_passphrase-0.1.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"

Or pin from a release asset URL in [tool.uv.sources] / a Dockerfile ADD. Prefer the wheel that matches your platform (manylinux, musllinux, macOS, Windows).

From a local checkout (developers):

uv sync --group dev
make develop   # maturin develop --release
make test

API

from l3io_age_passphrase import encrypt, decrypt, encrypt_io, decrypt_io

# One-shot (small payloads)
ciphertext = encrypt(b"secret data", "passphrase")
plaintext = decrypt(ciphertext, "passphrase")

# Streaming (multi-GB dumps/archives) — bounded memory
encrypt_io(reader, writer, "passphrase")          # armored=False by default
decrypt_io(reader, writer, "passphrase")

# ASCII armor when you need a text-safe envelope
encrypt_io(reader, writer, "passphrase", armored=True)

Exceptions:

Type When
EncryptError encryption or I/O failure while writing ciphertext
DecryptError wrong passphrase, truncated/damaged stream, or non-age input

Passphrases are never included in exception messages.

Interop

Producer Consumer
this package age -d (TTY passphrase)
this package age -d -j batchpass + AGE_PASSPHRASE_FD
age -e -j batchpass decrypt / decrypt_io

Recipient / SSH encryption is out of scope — use pyrage for those.

Backend choice in l3io-wordpress-database

That package selects backends with L3IO_AGE_PASSPHRASE_BACKEND:

  • auto (default) — this binder if importable, else age + age-plugin-batchpass
  • binder — require this package
  • cli — require FiloSottile age ≥1.3 with the batchpass plugin

Development

make check     # ruff + pytest
make build     # wheels into dist/

Requires Rust stable, Python ≥3.11, uv 0.11.6, and maturin.

Releasing

gh workflow run release.yml -f bump=patch   # or minor / major

That tags vX.Y.Z, builds multi-platform wheels, and attaches them to a GitHub Release. PyPI publish is intentionally not wired yet.

License

MIT. Built on the Rust age crate (MIT OR Apache-2.0).

Metadata

Release files for l3io-age-passphrase 0.1.2

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

Source distribution (sdist)

Source distribution for l3io-age-passphrase 0.1.2
File Size Uploaded Provenance Actions
l3io_age_passphrase-0.1.2.tar.gz 33.8 kB Without provenance Details for l3io_age_passphrase-0.1.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for l3io-age-passphrase 0.1.2
File Actions
l3io_age_passphrase-0.1.2-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for l3io_age_passphrase-0.1.2-cp311-abi3-win_amd64.whl
l3io_age_passphrase-0.1.2-cp311-abi3-musllinux_1_2_x86_64.whl CPython 3.11 abi3 Linux musl 1.2+ x86-64 Details for l3io_age_passphrase-0.1.2-cp311-abi3-musllinux_1_2_x86_64.whl
l3io_age_passphrase-0.1.2-cp311-abi3-musllinux_1_2_armv7l.whl CPython 3.11 abi3 Linux musl 1.2+ ARMv7l Details for l3io_age_passphrase-0.1.2-cp311-abi3-musllinux_1_2_armv7l.whl
l3io_age_passphrase-0.1.2-cp311-abi3-musllinux_1_2_aarch64.whl CPython 3.11 abi3 Linux musl 1.2+ ARM64 Details for l3io_age_passphrase-0.1.2-cp311-abi3-musllinux_1_2_aarch64.whl
l3io_age_passphrase-0.1.2-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.11 abi3 Linux glibc 2.17+ x86-64 Details for l3io_age_passphrase-0.1.2-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
l3io_age_passphrase-0.1.2-cp311-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.whl CPython 3.11 abi3 Linux glibc 2.17+ ARMv7l Details for l3io_age_passphrase-0.1.2-cp311-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.whl
l3io_age_passphrase-0.1.2-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.11 abi3 Linux glibc 2.17+ ARM64 Details for l3io_age_passphrase-0.1.2-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
l3io_age_passphrase-0.1.2-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for l3io_age_passphrase-0.1.2-cp311-abi3-macosx_11_0_arm64.whl
l3io_age_passphrase-0.1.2-cp311-abi3-macosx_10_12_x86_64.whl CPython 3.11 abi3 macOS 10.12+ x86-64 Details for l3io_age_passphrase-0.1.2-cp311-abi3-macosx_10_12_x86_64.whl

Total release size: 5.8 MB

Release files / l3io_age_passphrase-0.1.2.tar.gz

Download URL l3io_age_passphrase-0.1.2.tar.gz
Size 33.8 kB
Tags Source
SHA-256 checksum
How to use checksums
23e8bfe34038a2e3ac64d0d1d1be9ab7a6e16bfd516c1929388fe52ae6629165
BLAKE2b-256 checksum
How to use checksums
126196c445571a31f967433a0176395b23e9863e6914a27f4b0e1adedc51457a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / l3io_age_passphrase-0.1.2-cp311-abi3-win_amd64.whl

Download URL l3io_age_passphrase-0.1.2-cp311-abi3-win_amd64.whl
Size 422.5 kB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
2098322eadcb1363c581722ad2b0ab22d0663f94d076d7efa846c4dc3f51a023
BLAKE2b-256 checksum
How to use checksums
aecc1458c36affaa3ca56766fc6d2e17d16610ee7932f4a8d5a4b6acb686a803
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / l3io_age_passphrase-0.1.2-cp311-abi3-musllinux_1_2_x86_64.whl

Download URL l3io_age_passphrase-0.1.2-cp311-abi3-musllinux_1_2_x86_64.whl
Size 814.4 kB
Tags CPython 3.11 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
a94fe3ef7193aefd76982bd5539f1cd8414f1ddc7fa98738014a78ebcf6ebb9b
BLAKE2b-256 checksum
How to use checksums
237e63a14c6c15399fcabaf9ab2a6039f351c0f20c1ec37c408aafeb0c85b8a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / l3io_age_passphrase-0.1.2-cp311-abi3-musllinux_1_2_armv7l.whl

Download URL l3io_age_passphrase-0.1.2-cp311-abi3-musllinux_1_2_armv7l.whl
Size 859.7 kB
Tags CPython 3.11 Linux musl 1.2+ ARMv7l abi3
SHA-256 checksum
How to use checksums
d9e4fe7a0a14a53af41d74316689a6f0d30c917a2f887c4adb0a562725b56176
BLAKE2b-256 checksum
How to use checksums
792b5adb6d7c2bb34cc71e59a46afa632f96fe7159a87ac67170ca896c1ade36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / l3io_age_passphrase-0.1.2-cp311-abi3-musllinux_1_2_aarch64.whl

Download URL l3io_age_passphrase-0.1.2-cp311-abi3-musllinux_1_2_aarch64.whl
Size 768.2 kB
Tags CPython 3.11 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
b6c4b20c280596712ed199bcc7b26bc5cc264df26a9d36d1a6f5425eefb3b440
BLAKE2b-256 checksum
How to use checksums
c0ebce88ec554a0f2886c32055249ae750121c9896b7773794ed2869a02a38bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / l3io_age_passphrase-0.1.2-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL l3io_age_passphrase-0.1.2-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 607.3 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
eea4c13b642ba78442a6ccabdc69859a164b5541d41ad7a89cfcb4050b469ca7
BLAKE2b-256 checksum
How to use checksums
a59d1689bdbc112b8d9806822c1f1fa0c0c5a9209aef68052d02744f3c3ea508
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / l3io_age_passphrase-0.1.2-cp311-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.whl

Download URL l3io_age_passphrase-0.1.2-cp311-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.whl
Size 583.9 kB
Tags CPython 3.11 Linux glibc 2.17+ ARMv7l abi3
SHA-256 checksum
How to use checksums
b3594446447206ef22f417b9c38e6f55c72f30bad6b0ec77509f6aa2218bec06
BLAKE2b-256 checksum
How to use checksums
4dff984115a8d743178ceaac37069608c5a326ddb449ee7fa244f9316a9a8c71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / l3io_age_passphrase-0.1.2-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL l3io_age_passphrase-0.1.2-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 591.3 kB
Tags CPython 3.11 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
8896551a4e7cdf5988b0b1700800756f276f9931cb5d5199aaaf290dae3ce0e6
BLAKE2b-256 checksum
How to use checksums
6d34faa542ee0b8f74385ba9f0c77fff983c3544393e6de20934d737fa446b76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / l3io_age_passphrase-0.1.2-cp311-abi3-macosx_11_0_arm64.whl

Download URL l3io_age_passphrase-0.1.2-cp311-abi3-macosx_11_0_arm64.whl
Size 538.1 kB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
abb557eaf868735b817b2ec841b98ce736c26d2752595aa9d0c5616628e0340f
BLAKE2b-256 checksum
How to use checksums
36d257686202d03859cef0d0827b5163c382fa60a3b850d618f9f9a3a0c1790c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / l3io_age_passphrase-0.1.2-cp311-abi3-macosx_10_12_x86_64.whl

Download URL l3io_age_passphrase-0.1.2-cp311-abi3-macosx_10_12_x86_64.whl
Size 548.2 kB
Tags CPython 3.11 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
c6c0132091eadb9b51acf79d718aade95ba414bcb5cdfc6167c1eaa21750520e
BLAKE2b-256 checksum
How to use checksums
ffc7e4092b6b31878f5cd8c5661d143b7141db7778e856b60f791d7b9e244f13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for l3io-age-passphrase 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

10 release files No provenance

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