Scan your whole stack
From OX Research Newsroom
Are you using krypto-py?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.9.1
krypto-py was last scanned on 29 Nov 2026 at version 0.9.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.9.1 LATEST | 29 Nov 2026 | No rules fired |
| 0.9.0 | 21 Nov 2026 | No rules fired |
| 0.8.2 | 18 Nov 2026 | No rules fired |
| 0.8.1 | 15 Nov 2026 | Not shown |
| 0.8.0 | 2 Nov 2026 | Not shown |
Findings for v0.9.1. 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.9.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
The Python module of krypto: secrets in locked memory,
authenticated encryption at rest, key derivation, signatures, key agreement and password hashing.
It is the same API as the Rust crate krypto, with the same names, and the same Rust code runs
inside it — so what one seals, the other opens.
pip install krypto-py
It needs Python 3.11 or newer, and is tested with 3.11 and 3.12. Wheels are built for Linux on x86_64 with glibc 2.34 or newer; elsewhere pip builds from source, which needs Rust.
import krypto_py as krypto
krypto.harden_process()
master = krypto.MasterKey.from_secret_file("/run/secrets/master_key")
key = master.derive(b"my-app/tokens/v1", b"per-store-salt")
secret = krypto.SecretBuf.from_vec(bytearray(b"api-token")) # the bytearray is zeroed
blob = krypto.seal(key, master.key_id(), secret, krypto.Alg.Aegis256)
back = krypto.open(key, blob) # a SecretBuf: the plaintext stays locked
Errors are exceptions, one per kind, all under krypto_py.Error. AuthError means tampering, the
wrong key or the wrong password, and is the one to alert on. At the open of a version 2 store a
master key that does not fit is WrongKeyError.
The secrets live in krypto's locked memory, wiped when dropped and, on Linux, kept out of core
dumps. What Python itself holds — the bytes you pass in, and the copies expose hands out — is
ordinary Python memory, neither locked nor wiped.
License: MIT or Apache-2.0, at your option.
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.