muerte32crypt
Windows-native DPAPI encryption using ctypes.
Encrypt and decrypt strings, bytes, or files with optional entropy and descriptions.
Includes TPM utilities, certificate handling, RSA, EC & Ed keys, symmetric ciphers, Twofish, and key management.
Features
-
DPAPI encryption/decryption:
encrypt,decrypt,encrypt_str,decrypt_str,encrypt_file,decrypt_file -
TPM utilities:
is_tpm_available,generate_tpm_key,seal_data_to_tpm,unseal_data_from_tpm -
Hashing & HMAC:
sha256,sha512,hmac_sha256,hmac_sha512 -
AES: Key wrap/unwrap:
aes_key_wrap,aes_key_unwrapAES-GCM encrypt/decrypt:aes_gcm_encrypt,aes_gcm_decrypt,aes_gcm_encrypt_with_nonce,aes_gcm_decrypt_with_nonceAES-CBC encrypt/decrypt:aes_cbc_encrypt,aes_cbc_decrypt -
RSA: Generate keys:
generate_rsa_keypairEncrypt/decrypt:rsa_encrypt,rsa_decryptSign/verify:rsa_sign,rsa_verifySerialize/load keys:serialize_private_key,serialize_public_key,load_private_key,load_public_keyGet fingerprint:get_public_key_fingerprint -
Twofish symmetric cipher:
twofish_encrypt_raw,twofish_decrypt_raw -
Certificates: Load/save certs and CSRs:
load_cert,save_cert,load_csr,save_csrGenerate self-signed certs and CSRs:generate_self_signed_cert,generate_csrGet cert info:get_cert_fingerprint,get_cert_subject,get_cert_issuer,get_cert_sansVerify cert chain:verify_cert_chain -
Elliptic and EdDSA curves:
generate_ec_key,generate_ed_key,list_all_curves,get_curve_name -
Key Management (class
KeyManager):- Symmetric key generate/get/delete/rotate
- RSA keypair generate/import/export/get/delete
- Derive keys from passwords with PBKDF2
- Salt generation
Usage example
from muerte32crypt.dpapi import encrypt_str, decrypt_str
encrypted = encrypt_str("my_secret_password", entropy="somesalt")
print(decrypt_str(encrypted, entropy="somesalt"))
from muerte32crypt.keymanagement import KeyManager
km = KeyManager()
km.generate_key("my_sym_key", 32)
key = km.get_key("my_sym_key")
print(key.hex())
priv, pub = km.generate_rsa_keypair("my_rsa_key")
pem = km.export_private_key_pem("my_rsa_key", passphrase=b"mypass")
print(pem.decode())
from muerte32crypt.certs import generate_self_signed_cert, get_cert_subject
cert, key = generate_self_signed_cert("example.com")
print(get_cert_subject(cert))
Installation
pip install muerte32crypt
Metadata
Release files for muerte32crypt 1.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| muerte32crypt-1.0.8.tar.gz | 16.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| muerte32crypt-1.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.8 kB
Release files / muerte32crypt-1.0.8.tar.gz
| Download URL | muerte32crypt-1.0.8.tar.gz |
|---|---|
| Size | 16.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c5ff781fc0be89a5c1b1f853eb5cb938d9f7c0c1fc4d969a33a28d8485c4acfd
|
|
BLAKE2b-256 checksum How to use checksums |
e4a53724217f6ae1f236e49374f6485fe1c9d8e43917c6aab086ce9283edcf83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.4
|
Release files / muerte32crypt-1.0.8-py3-none-any.whl
| Download URL | muerte32crypt-1.0.8-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
393eb0020a9ceb1e5e915b8f0ba7da607450ed87ceaba1f432a3be8c13f16ade
|
|
BLAKE2b-256 checksum How to use checksums |
7d48b53226c3e57b50d4dc84b44447b1cedc4e268c38512338c0cfa6103b9f76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.4
|
Security for muerte32crypt 1.0.8
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.