Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

pyrind

Latest version: v0.1.3

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: kixelated
6 Stars
3 Forks
4 Versions
1.3K Downloads
Rust Repo language

Scan summary

pyrind was last scanned on 29 Nov 2026 at version 0.1.3. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 4 versions; the latest was published on 29 Nov 2026.
  • Findings: No rules fired in version 0.1.3.
  • Downloads: 1,331 downloads.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.3 LATEST 29 Nov 2026 No rules fired
0.1.2 8 Nov 2026 No rules fired
0.1.1 8 Nov 2026 No rules fired
0.1.0 7 Nov 2026 Not shown

No rules fired in 0.1.3

Findings

Findings for v0.1.3. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.1.3; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

pyrind

Cryptography for Python from rind, a pure-Rust library: AEADs, hashes, HMAC, HKDF, PBKDF2, X25519, Ed25519, ECDSA and ECDH, RSA, and ML-KEM, with rind's own misuse-resistant API. pyrind-cryptography offers pyca/cryptography's API on it instead.

pip install pyrind

Why

A Python call into pyca/cryptography pays OpenSSL 3's per-call setup, which dwarfs the work on a small message. pyrind's calls go straight to rind's assembly.

On an Intel Core i7-8700 (Coffee Lake, 2017), Linux 6.18, CPython 3.14.8, against cryptography 50.0.2 on OpenSSL 3.5.9, one call at a time with its inputs in hand, fastest of seven runs:

Operation pyrind cryptography hashlib, hmac cryptography ÷ pyrind
SHA-256, 21 B 262 ns 1.79 µs 526 ns 6.8x
HMAC-SHA256, 21 B 401 ns 2.54 µs 1.87 µs 6.3x
HKDF-SHA256, 32 B key 1.68 µs 5.07 µs - 3.0x
AES-128-GCM seal, 32 B 237 ns 667 ns - 2.8x
AES-128-GCM open, 32 B 218 ns 690 ns - 3.2x
AES-128-GCM seal, 1350 B 507 ns 924 ns - 1.8x
AES-128-GCM open, 1350 B 472 ns 926 ns - 2.0x
AES-128-GCM seal, 16384 B 3.04 µs 3.63 µs - 1.2x
AES-128-GCM open, 16384 B 3.02 µs 3.59 µs - 1.2x
ChaCha20-Poly1305 seal, 32 B 315 ns 858 ns - 2.7x
ChaCha20-Poly1305 open, 32 B 293 ns 894 ns - 3.0x
ChaCha20-Poly1305 seal, 1350 B 930 ns 1.54 µs - 1.7x
ChaCha20-Poly1305 open, 1350 B 901 ns 1.59 µs - 1.8x
ChaCha20-Poly1305 seal, 16384 B 7.13 µs 7.66 µs - 1.1x
ChaCha20-Poly1305 open, 16384 B 7.03 µs 7.72 µs - 1.1x
X25519 agree 19.93 µs 30.44 µs - 1.5x
ECDH P-256 agree 37.44 µs 62.57 µs - 1.7x
Ed25519 sign, 21 B 7.10 µs 28.96 µs - 4.1x
Ed25519 verify, 21 B 29.07 µs 93.03 µs - 3.2x
ECDSA P-256 sign, 21 B 14.41 µs 26.14 µs - 1.8x
ECDSA P-256 verify, 21 B 39.42 µs 60.53 µs - 1.5x
RSA-2048 PKCS#1 sign, 21 B 470.21 µs 483.67 µs - 1.0x
RSA-2048 PKCS#1 verify, 21 B 11.00 µs 20.14 µs - 1.8x
ML-KEM-768 encapsulate 3.22 µs 22.16 µs - 6.9x
ML-KEM-768 decapsulate 7.78 µs 33.81 µs - 4.3x

The gap is widest on small messages and short-lived keys, which is where protocols spend their calls. On 16 KiB the assembly dominates both and the two converge; RSA signing is the same modular exponentiation in each.

Run sh/python.sh bench in the repository for your own machine's numbers.

Use

Each rind module is a submodule. Algorithms are constants, and a key is made for one algorithm, so the wrong combination fails before any data moves: passing a hash where a key wants an AEAD algorithm raises TypeError.

import os
from pyrind import aead, digest, hkdf, hmac, signature
from pyrind.signature import sign, verify

# Hashes and MACs.
digest.digest(digest.SHA256, b"hello")
key = hmac.Key(hmac.HMAC_SHA256, b"secret")
tag = hmac.sign(key, b"message")
hmac.verify(key, b"message", tag)  # raises pyrind.BadSignature on a mismatch

# AEAD with the caller's nonces, which must never repeat under one key. The
# associated data is keyword-only, so it can't be swapped with the plaintext.
key = aead.Key(aead.AES_256_GCM, os.urandom(32))
sealed = key.seal(bytes(12), b"plaintext", aad=b"header")
assert key.open(bytes(12), sealed, aad=b"header") == b"plaintext"

# Or random 192-bit nonces, with no nonce state.
key = aead.RandomizedNonceKey(os.urandom(32))
nonce, sealed = key.seal(b"plaintext", aad=b"")
assert key.open(nonce, sealed, aad=b"") == b"plaintext"

# HKDF expands straight into keys, whose bytes never reach Python.
prk = hkdf.Salt(hkdf.HKDF_SHA256, b"salt").extract(b"input key material")
aead_key = prk.expand(b"aead", aead.AES_256_GCM)

# Signatures: a key pair signs with a `sign` algorithm, and a peer's public
# key is parsed for a `verify` algorithm.
key_pair = signature.EcdsaKeyPair.generate(sign.ECDSA_P256_SHA256_ASN1)
signed = key_pair.sign(b"message")
public_key = signature.PublicKey(verify.ECDSA_P256_SHA256_ASN1, bytes(key_pair.public_key()))
public_key.verify(b"message", signed)

The modules are aead, agreement (X25519 and ECDH), cipher (unauthenticated AES-CBC), cpu, digest, hkdf, hmac, kem (ML-KEM-768), key_wrap (AES-KW and AES-KWP), pbkdf2, rsa (RSA-OAEP), and signature (ECDSA, Ed25519, and RSA). Algorithms only legacy protocols should use, such as SHA-1 and MD5, live in each module's legacy submodule. Keys load from and encode to PKCS#8, SEC1, PKCS#1, and SubjectPublicKeyInfo DER. The package ships type stubs, and rind's documentation describes each operation in depth.

Every failure raises a subclass of pyrind.Error: WrongLength, KeyRejected (whose message says why), BadSignature, DecryptFailed, RngFailed, Unsupported, or Fault. Arguments take any bytes-like object; anything but bytes is copied first, so no other thread can change it mid-call. RSA key generation, RSA signing and decryption, and PBKDF2 release the GIL while they run.

pyrind wipes keys and keyed state when Python frees them, as rind does. Nothing wipes the bytes a key was loaded from or exported to; Python owns those. A key, seed, or password passed as another buffer, such as a bytearray you wipe yourself, is copied for the call, and pyrind wipes that copy before the call returns.

Platforms

Wheels cover CPython 3.11 and later through the stable ABI, on Linux (glibc 2.17 and later on x86_64, aarch64, and armv7; musl on x86_64 and aarch64), macOS on x86_64 and Apple silicon, and Windows on x86_64 and aarch64. PyPy, free-threaded CPython, and other platforms build the sdist, which needs a Rust toolchain. On an architecture rind has no assembly for, such as riscv64 or s390x, that build runs rind's portable Rust backend (PLATFORMS.md); there is no pure-Python fallback.

License

pyrind carries rind's licenses: rind's own code is Apache-2.0, ISC, or MIT-0, at your option, and the code it copies keeps its source's license, as LICENSE lists.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases pyrind

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229