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
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
mi_crypto_lib-1.0.1.tar.gz
(6.2 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 mi_crypto_lib-1.0.1.tar.gz.
File metadata
- Download URL: mi_crypto_lib-1.0.1.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19ca6ec6e53a39dc2dcc5ab525dc0f3adc3fea6bed6bc2468e17715836c6cf8e
|
|
| MD5 |
1bfe7044f03a55cebc0a8270538e635b
|
|
| BLAKE2b-256 |
789b8f6d8950a1376a402fd48e450eb9acd3dbf68e203c9e7dec1929e52553c8
|
File details
Details for the file mi_crypto_lib-1.0.1-py3-none-any.whl.
File metadata
- Download URL: mi_crypto_lib-1.0.1-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52b9fddae0e32a13040624c27b82f42d8ca8da8a62275da81caea02616a30527
|
|
| MD5 |
521cbdd5d88ff324b5d9e5ef566a4fe5
|
|
| BLAKE2b-256 |
1fa34738de62791075a1450288deed0e01b92e9cd21236abfa97b312267d510b
|