$npx skillfedfor your agent

pyrage

Python bindings for rage (age in Rust)

Worth itPyPI CryptographyReleased Jun 2025176.7K downloads / moMITPlatform wheel

Decision gist · record as of 2026-08-14

platform wheels — pyrage-1.3.0-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl · pyrage-1.3.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl · pyrage-1.3.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
v1.3.0 · released 2025-06-14 · Python >=3.9

Yes. pyrage is actively maintained, has no known vulnerabilities, and offers a clean Python interface to a well-regarded Rust cryptographic library. Install friction is moderate due to compiled bindings, but wheels cover common platforms. Use it if you need age encryption in Python and prefer native bindings over subprocess calls to external tools.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.9 or later; compiled wheels are available for common platforms but may require a Rust toolchain if building from source.
  • Medium install friction due to compiled Rust bindings; wheels are available for Linux x86_64/aarch64, macOS (Intel and Apple Silicon), and Windows x86_64.
  • Requires Python 3.9+.

License · maintenance · safety

MIT (permissive) — MIT license is permissive; you can use, modify, and distribute pyrage freely in commercial and private projects with minimal restrictions.

last release 2025-06-14 (426 days) · last repo commit 2026-08-10 · 89 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 176,679 downloads/mo, #10,237 on PyPI

Verify before relying

pip install pyrage

from pyrage import x25519, encrypt, decrypt

ident = x25519.Identity.generate()
recipient = ident.to_public()
encrypted = encrypt(b"secret", [recipient])
decrypted = decrypt(encrypted, [ident])
  • Whether type stubs (pyrage-stubs) are necessary for your workflow or optional.
  • Performance characteristics compared to pure-Python age implementations, if any exist.
  • Whether SSH key support covers all OpenSSH formats or has limitations.
Same gist for agents: .md · .json

What it is and what it does

pyrage wraps the Rust implementation of age, a modern file encryption tool, exposing its cryptographic primitives to Python. It supports three encryption modes: identity-based encryption using x25519 keys (with key generation), SSH key-based encryption (reading OpenSSH private keys), and passphrase-based encryption. The package has no runtime dependencies and is distributed as compiled wheels for major platforms.

The library is designed for developers who need age's encryption capabilities in Python applications without reimplementing the cryptography. It handles the complexity of key management, recipient lists, and encryption/decryption workflows through a straightforward API. The package is actively maintained, has no known vulnerabilities, and supports current Python versions.

Use it for

  • Encrypt sensitive files or data using x25519 identities generated within Python applications.
  • Decrypt age-encrypted files using SSH keys already present on the system.
  • Implement passphrase-protected encryption for user-supplied secrets in CLI tools or scripts.
  • Build multi-recipient encryption workflows where different identities can decrypt the same ciphertext.
  • Integrate age encryption into Python backend services without calling external binaries.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

pyrage is actively maintained, has no known vulnerabilities, and offers a clean Python interface to a well-regarded Rust cryptographic library. Install friction is moderate due to compiled bindings, but wheels cover common platforms. Use it if you need age encryption in Python and prefer native bindings over subprocess calls to external tools.

Install

pyrage on PyPI

Before you install

Medium install friction due to compiled Rust bindings; wheels are available for Linux x86_64/aarch64, macOS (Intel and Apple Silicon), and Windows x86_64. Requires Python 3.9+. Maintenance is active with recent commits and no known vulnerabilities.

Requires Python 3.9 or later; compiled wheels are available for common platforms but may require a Rust toolchain if building from source.

License in practice

MIT license is permissive; you can use, modify, and distribute pyrage freely in commercial and private projects with minimal restrictions.

Quickstart

pip install pyrage

from pyrage import x25519, encrypt, decrypt

ident = x25519.Identity.generate()
recipient = ident.to_public()
encrypted = encrypt(b"secret", [recipient])
decrypted = decrypt(encrypted, [ident])

Verify before relying

  • Whether type stubs (pyrage-stubs) are necessary for your workflow or optional.
  • Performance characteristics compared to pure-Python age implementations, if any exist.
  • Whether SSH key support covers all OpenSSH formats or has limitations.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.9
Install frictionMedium. Platform-specific wheel
Runtime dependenciesNone
MaintenanceActively maintained 426 days since the last release
Last repo commit
First released
Downloads176,679 / month, #10,237 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Operating System :: POSIX :: LinuxProgramming Language :: Rust

Evidence: pyrage-1.3.0-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl; pyrage-1.3.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; pyrage-1.3.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; pyrage-1.3.0-cp39-abi3-win_amd64.whl

Tags

Capabilities
age encryption pythonrust age bindingsx25519 encryptionpassphrase encryption decryptionssh key encryptionidentity-based encryptionage cryptography
Topics
cryptographyrust-bindingsencryption

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “age encryption python”

  • pyragepyrage provides Python bindings to the Rust implementation of age,…
  • joseImplements JSON Web Signature (JWS) and JSON Web Encryption (JWE) for…
  • deepfaceDeepFace performs face recognition, verification, and facial…

Give your agent the search over MCP, or paste the wish link into any chat.

More Cryptography packages

certifi Worth it
PyPI · Cryptography · released Jul 2026

Certifi provides Mozilla's curated collection of root SSL certificates for Python applications to validate TLS hosts and verify certificate trustworthiness.

MPL-2.0pure Python · 3.7+
1.9Bdownloads / mo
cryptography Worth it
PyPI · Cryptography · released Jul 2026

cryptography provides cryptographic recipes and low-level primitives for symmetric encryption, message digests, key derivation, and other common cryptographic algorithms in Python.

Apache-2.0 OR BSD-3-Clausecompiled wheel
1.5Bdownloads / mo
rsa Skip
PyPI · Cryptography · released Apr 2025

Pure-Python RSA encryption, decryption, signing, and key generation following PKCS#1 v1.5, with command-line and library interfaces.

Apache-2.0pure Pythonabandoned
299.6Mdownloads / mo
pyOpenSSL With conditions
PyPI · Python Modules · released Aug 2026

pyOpenSSL wraps OpenSSL's SSL/TLS functionality for Python, providing high-level connection objects and certificate handling through a Python-friendly interface around OpenSSL's cryptographic operations.

Apache-2.0pure Python · 3.9+
294.2Mdownloads / mo
azure-identity Worth it
PyPI · Cryptography · released Mar 2026

Provides Microsoft Entra ID token-based authentication for Azure SDK clients through a set of TokenCredential implementations that handle OAuth flows and managed identity support.

license unclearpure Python · 3.9+
247.2Mdownloads / mo
PyNaCl Worth it
PyPI · Cryptography · released Jan 2026

PyNaCl provides Python bindings to libsodium for digital signatures, secret-key and public-key encryption, hashing, message authentication, and password-based key derivation.

Apache-2.0compiled wheel · 3.8+
246.6Mdownloads / mo

See also eciespy · scrypt · pyAesCrypt · bittensor-drand · pyaes · kasa-crypt · gnupg · crypto · python-olm · aws-encryption-sdk