• v3.2.0 f5c86d53e5

    dvs released this 2026-09-27 01:45:31 +00:00 | 1 commits to main since this release

    purepycrypto v3.2.0

    Pure-Python cryptography library (zero dependencies).

    Highlights

    • Zero third-party dependencies — standard library only, no compilation.
    • Hashes: SHA-256 / SHA-512, SHA-3 (Keccak) / SHAKE, BLAKE2b, HMAC.
    • KDF: PBKDF2, HKDF, scrypt (RFC 7914), Argon2id (RFC 9106).
    • Symmetric: AES (ECB / CBC / CTR / CFB / OFB / GCM), AES-GCM-SIV (RFC 8452),
      ChaCha20-Poly1305 / XChaCha20-Poly1305 (RFC 8439).
    • Asymmetric: X25519 (RFC 7748), Ed25519 (RFC 8032),
      RSA (keygen / OAEP / PSS / PKCS#1 / PKCS#8 / SPKI / PEM), ASN.1 DER.
    • Encodings: Base64 / Base64URL / Base32 / Base32-Hex / Hex / Base58, big-int Base64URL.
    • Secure random: CSPRNG-backed bytes, ints, tokens, passwords, UUID v4.
    • Unified error system: fatal PPYC_ERR exceptions vs non-fatal
      (code, message, suggestion) 3-tuple returns.
    • Two interfaces: an interactive TUI (Chinese / English i18n) and a
      non-interactive CLI for scripts and CI.
    • Single-file build: purepycrypto/single/purepycrypto.py
      (no arguments → TUI, with arguments → CLI).

    v3.2.0 additions

    • purepycrypto.encoding — hand-written, byte-for-byte identical to the stdlib.
    • purepycrypto.rand — OS CSPRNG only (rejection sampling, no modulo bias).
    • purepycrypto.kdf2 — extended Argon2id / PHC-string support.

    This release

    • Documentation, code comments and error messages are fully in English.
      The interactive TUI keeps its Chinese interface (cn language pack).
    • TUI error messages are localized at the display layer by error code.
    • menu9 (Encoding / Decoding) and menu10 (Secure Random) added to the i18n layer.

    Verification

    • Standard test vectors: RFC 5869, RFC 7748, RFC 8032, RFC 8439, RFC 8452,
      RFC 9106, FIPS 197, FIPS 202, NIST GCM.
    • Test suite: 639 passing, 1 skipped, 0 failed.

    Artifacts

    • purepycrypto-3.2.0-py3-none-any.whl
    • purepycrypto-3.2.0.tar.gz

    Install

    pip install purepycrypto-3.2.0-py3-none-any.whl
    

    License

    MIT

    Repository

    Artifacts

    • purepycrypto-3.2.0-py3-none-any.whl
    • purepycrypto-3.2.0.tar.gz
    Downloads