Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

baza_crypto-0.2.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

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

Hashes for baza_crypto-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4dfac6f26d19a0ff57e3c97d3a859355c7244319fa7b4614f58ca7dfbe6f2a46
MD5 6da0f9cd82953c6d2983ec371bcd58d9
BLAKE2b-256 12066eb154ddc1a0e02dcaa34b57b273a185a88153071fff0f352c36cab5f165

See more details on using hashes here.

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

Hashes for baza_crypto-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f53f8ab217ce28e015b1be5c2a6a9e6e45d5efa5489d6f26bd54d24da2ff492d
MD5 facc42e85f545f6f4877cb1434d0b2ba
BLAKE2b-256 9440b29681a8b16ce872af2c3742d3faa209dcc01b4f9e9593b87434d0ede5b5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page