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.8.tar.gz (15.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.8-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mi_crypto_lib-1.0.8.tar.gz
  • Upload date:
  • Size: 15.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.8.tar.gz
Algorithm Hash digest
SHA256 91d98f4c8818cc9db15d2108c508c1e0390a8b77e533488e196e7b31ed42f0a0
MD5 17878f10ef2669b52715605e0b515808
BLAKE2b-256 016318afef9208315a932fe23dd961200ac6b9d7c81fe1e6e1b10f743569d809

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mi_crypto_lib-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 25.3 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 8af6586dd753f03d31d7e4558ddb0fb1d330ace75b71eb664c48be08120c356d
MD5 f6e879f555a4cc7e316942ea23d65561
BLAKE2b-256 4141f8ba0f6105e749f9d1cfca456e0742734dc0c0afe857ba990a82cc91ce04

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