Librería de encriptación y hashing personalizable en Python
Project description
Baza
Baza es una librería de Python para encriptación y hashing flexible.
Ejemplo de uso
from baza import SymmetricCrypto, AsymmetricCrypto, hash_data, verify_hash
# --- Hashing ---
h = hash_data("mi_password", "argon2")
print("Hash:", h)
print("Verificada:", verify_hash(h, "mi_password", "argon2"))
# --- Encriptación simétrica ---
crypto = SymmetricCrypto()
token = crypto.encrypt(b"Hola mundo")
print("Encriptado:", token)
print("Desencriptado:", crypto.decrypt(token))
# --- Encriptación asimétrica ---
asym = AsymmetricCrypto()
enc = asym.encrypt(b"Mensaje secreto")
print("Encriptado:", enc)
print("Desencriptado:", asym.decrypt(enc))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
baza_crypto-0.2.0.tar.gz
(4.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file baza_crypto-0.2.0.tar.gz.
File metadata
- Download URL: baza_crypto-0.2.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4dfac6f26d19a0ff57e3c97d3a859355c7244319fa7b4614f58ca7dfbe6f2a46
|
|
| MD5 |
6da0f9cd82953c6d2983ec371bcd58d9
|
|
| BLAKE2b-256 |
12066eb154ddc1a0e02dcaa34b57b273a185a88153071fff0f352c36cab5f165
|
File details
Details for the file baza_crypto-0.2.0-py3-none-any.whl.
File metadata
- Download URL: baza_crypto-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f53f8ab217ce28e015b1be5c2a6a9e6e45d5efa5489d6f26bd54d24da2ff492d
|
|
| MD5 |
facc42e85f545f6f4877cb1434d0b2ba
|
|
| BLAKE2b-256 |
9440b29681a8b16ce872af2c3742d3faa209dcc01b4f9e9593b87434d0ede5b5
|