penguin-security
PenguinTech security utilities.
Install
pip install penguin-security
Quick Start
from penguin_security import ...
Crypto (optional)
penguin_security.crypto provides symmetric/hybrid encryption, key
derivation (Argon2id, HKDF), ECC (X25519/Ed25519), hashing, and per-tenant
envelope encryption (penguin_security.crypto.envelope). It was formerly
the standalone penguin-crypto package.
These primitives depend on cryptography and argon2-cffi, which are
not installed with the base package. Install the crypto extra to use
them:
pip install "penguin-security[crypto]"
from penguin_security.crypto import encrypt, decrypt, generate_key
key = generate_key()
ciphertext = encrypt(b"secret data", key)
plaintext = decrypt(ciphertext, key)
Importing penguin_security.crypto without the extra installed raises a
clear ImportError naming the extra.
AwsKmsKek (in penguin_security.crypto.envelope) additionally needs
boto3, kept as its own aws extra so the rest of the envelope module
never requires it:
pip install "penguin-security[crypto,aws]"
Metadata
Release files for penguin-security 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| penguin_security-0.1.1.tar.gz | 74.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| penguin_security-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 134.6 kB
Release files / penguin_security-0.1.1.tar.gz
| Download URL | penguin_security-0.1.1.tar.gz |
|---|---|
| Size | 74.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6f3cfe115458cb7adfa87fd2bb129267fcb1b4888b21d1dc0cbab1c175533106
|
|
BLAKE2b-256 checksum How to use checksums |
5efda6abdf2906b1f0ee9ef93d392843c83ec9cbfba1a1097a1c2e885adc135c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 28, 2026.
Transparency logRelease files / penguin_security-0.1.1-py3-none-any.whl
| Download URL | penguin_security-0.1.1-py3-none-any.whl |
|---|---|
| Size | 59.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4e6886c6bfb7b12ab9001479bce91edd78e4369d2cf0057ca6d057a8e2f431bb
|
|
BLAKE2b-256 checksum How to use checksums |
1091fafd0db31434b856a543e0ed57bab428ccab2dbba341b4c97ef3a2b8745b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 28, 2026.
Transparency log