Skip to main content

Biblioteca educativa de criptografia: teoria de numeros, cifrados clasicos y ataques

Project description

mi_crypto_lib

Biblioteca educativa de criptografía desarrollada en Python puro (sin dependencias externas).

Estructura

mi_crypto_lib/
├── teoria_numeros/          # Herramientas de teoría de números
│   ├── phi.py               # Función indicatriz de Euler φ(n)
│   ├── crr.py               # Conjunto Reducido de Residuos
│   └── inversos.py          # Inversos multiplicativos (Euler, Euclides extendido)
│
├── cifrados_clasicos/       # Cifrados clásicos
│   ├── vigenere_autoclave.py  # Vigenère Autoclave (texto plano / criptograma)
│   └── hill.py                # Cifrado Hill (matricial)
│
├── ataques/                 # Criptoanálisis
│   └── gauss_jordan.py      # Ataque al cifrado Hill con Gauss-Jordan
│
├── ejemplos/                # Demostraciones
│   └── rsa_demo.py          # Demo completa de RSA con n = p·q
│
├── setup.py
├── README.md
└── LICENSE

Instalación

# Desde el directorio raíz del proyecto:
pip install -e .

Uso rápido

Teoría de números

from mi_crypto_lib.teoria_numeros import phi, crr, inverso_euler

# Función φ de Euler
print(phi(36))        # 12

# Conjunto Reducido de Residuos
print(crr(10))        # [1, 3, 7, 9]

# Inverso multiplicativo
print(inverso_euler(3, 26))  # 9  →  3 × 9 ≡ 1 (mod 26)

Requisitos

  • Python ≥ 3.8
  • Sin dependencias externas (solo librería estándar)

Licencia

MIT License — ver LICENSE

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

mi_crypto_lib-1.0.3.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

mi_crypto_lib-1.0.3-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file mi_crypto_lib-1.0.3.tar.gz.

File metadata

  • Download URL: mi_crypto_lib-1.0.3.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for mi_crypto_lib-1.0.3.tar.gz
Algorithm Hash digest
SHA256 410f7f4a091926add0e4763b3bdee5143150d2db7a0d31f6bc1844df8f02c49f
MD5 b6dd869123e017abd5da81f84325e49d
BLAKE2b-256 39a3270b61ec752a5445bc9d36f263ef921c8169f109fa33746b024b5c64343e

See more details on using hashes here.

File details

Details for the file mi_crypto_lib-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: mi_crypto_lib-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 16.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for mi_crypto_lib-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e661860c070c59a1a0273d5427ea4a4e8490058872199b245431825fcb62ed32
MD5 9c0742b9c5cdf3a3df85fd48011bd293
BLAKE2b-256 177cc1ade46e577757ff7218316a91ce35dc20dc553c6a0e44e5dbb05a1459dc

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