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.3

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.3
File Size Uploaded Provenance Actions
l3io_age_passphrase-0.1.3.tar.gz 46.1 kB With provenance Details for l3io_age_passphrase-0.1.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for l3io-age-passphrase 0.1.3
File Actions
l3io_age_passphrase-0.1.3-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for l3io_age_passphrase-0.1.3-cp311-abi3-win_amd64.whl
l3io_age_passphrase-0.1.3-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.3-cp311-abi3-musllinux_1_2_x86_64.whl
l3io_age_passphrase-0.1.3-cp311-abi3-musllinux_1_2_armv7l.whl CPython 3.11 abi3 Linux musl 1.2+ ARMv7l Details for l3io_age_passphrase-0.1.3-cp311-abi3-musllinux_1_2_armv7l.whl
l3io_age_passphrase-0.1.3-cp311-abi3-musllinux_1_2_aarch64.whl CPython 3.11 abi3 Linux musl 1.2+ ARM64 Details for l3io_age_passphrase-0.1.3-cp311-abi3-musllinux_1_2_aarch64.whl
l3io_age_passphrase-0.1.3-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.3-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
l3io_age_passphrase-0.1.3-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.3-cp311-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.whl
l3io_age_passphrase-0.1.3-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.3-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
l3io_age_passphrase-0.1.3-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for l3io_age_passphrase-0.1.3-cp311-abi3-macosx_11_0_arm64.whl
l3io_age_passphrase-0.1.3-cp311-abi3-macosx_10_12_x86_64.whl CPython 3.11 abi3 macOS 10.12+ x86-64 Details for l3io_age_passphrase-0.1.3-cp311-abi3-macosx_10_12_x86_64.whl

Total release size: 5.8 MB

Release files / l3io_age_passphrase-0.1.3.tar.gz

Download URL l3io_age_passphrase-0.1.3.tar.gz
Size 46.1 kB
Tags Source
SHA-256 checksum
How to use checksums
122c444502a7161886286dd8cc468112b18dde6e57146a0ecce5e96bea7f36d6
BLAKE2b-256 checksum
How to use checksums
9e09035aceb5b3965a5c8ec0f932dd0177204ecaa5cb51083199f24680ae507b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

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

Download URL l3io_age_passphrase-0.1.3-cp311-abi3-win_amd64.whl
Size 423.3 kB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
9390357e7f4c1ed392763dda729a1e68cb83b2c4798b4e98b8545c47e14a3b29
BLAKE2b-256 checksum
How to use checksums
a856a3ab71dfba40e0be864a12df84be7baf2c837f610ac5ee3fda230cbe268f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

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

Download URL l3io_age_passphrase-0.1.3-cp311-abi3-musllinux_1_2_x86_64.whl
Size 814.9 kB
Tags CPython 3.11 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
4674532e84649f6de3194a9e9b64461f14239e2e767025c0b591be10e7d9494c
BLAKE2b-256 checksum
How to use checksums
9c4c42de56b27f2420e346e3e34ba1d3477783fba06d5491abddcee34dd8bfe2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

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

Download URL l3io_age_passphrase-0.1.3-cp311-abi3-musllinux_1_2_armv7l.whl
Size 860.1 kB
Tags CPython 3.11 Linux musl 1.2+ ARMv7l abi3
SHA-256 checksum
How to use checksums
ba64686bd5d896d9b4f28dd3ff2d857711199b26b40b7720d5af1c6190be529e
BLAKE2b-256 checksum
How to use checksums
7924905cdf1d88061b64e6b0944b849f03c7c6863217c5b4deaf7929e8434556
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

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

Download URL l3io_age_passphrase-0.1.3-cp311-abi3-musllinux_1_2_aarch64.whl
Size 772.4 kB
Tags CPython 3.11 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
5ade3ed2d8316286f564839567cacdd2e739cb466ac1fb003f51729b07639d7f
BLAKE2b-256 checksum
How to use checksums
4d4a64d6aec071a6d0af2881b92713e5eee4963d5586f51ffe02e627dec97c91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

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

Download URL l3io_age_passphrase-0.1.3-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 606.8 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
4018f88d44f667b232e374800ba008b621fbab51efa1e447702c4e2eed35e3b3
BLAKE2b-256 checksum
How to use checksums
2b5c346b04b763f49c36d014abb44e69ebad7b99b9e4cd3611dbb53850921ffd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

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

Download URL l3io_age_passphrase-0.1.3-cp311-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.whl
Size 584.5 kB
Tags CPython 3.11 Linux glibc 2.17+ ARMv7l abi3
SHA-256 checksum
How to use checksums
0b6174d616f3a55748b265bbd3267c276d253c7076d9d0701ab435cf3672fd16
BLAKE2b-256 checksum
How to use checksums
141f93823708081b502ab3adf2f4ad6cac2611710f6968102635da3c492fc193
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

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

Download URL l3io_age_passphrase-0.1.3-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 594.0 kB
Tags CPython 3.11 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
5d8d2adf7733cd0e73c65de7af25590b2c045ee04ce0598272c1a0ded905b696
BLAKE2b-256 checksum
How to use checksums
627bbad6de6435b33c4738f09c9aab519ba9602adbe3aa20a35189ce00a93547
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

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

Download URL l3io_age_passphrase-0.1.3-cp311-abi3-macosx_11_0_arm64.whl
Size 538.0 kB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
eaed0e4f8f27a3242e2a48b4402e243cdc3ba54abc7cd43ab8faaf7f59c0ca81
BLAKE2b-256 checksum
How to use checksums
980630f835f938b39de7ae03957944ea70088d79b909576499870cdd3384c39e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

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

Download URL l3io_age_passphrase-0.1.3-cp311-abi3-macosx_10_12_x86_64.whl
Size 548.5 kB
Tags CPython 3.11 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
69fdedabcfe4a5e88bf6dff3eacda561100aac35b47cce9c96d9a1853b66077e
BLAKE2b-256 checksum
How to use checksums
62f5be30f3f5e9aea5ca4618933ee703db4848380937fb81a38c4b6811a917dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Security for l3io-age-passphrase 0.1.3

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.

Full provenance

All 10 files in this release have been uploaded with provenance metadata.

Select from 10 files

Attestation for l3io_age_passphrase-0.1.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

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.3 This release

10 release files Full 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