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.7.tar.gz
(11.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 mi_crypto_lib-1.0.7.tar.gz.
File metadata
- Download URL: mi_crypto_lib-1.0.7.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1867b35501b3aa6db7f83902e52681583e6630b55e8dd73bbea036db2932c2df
|
|
| MD5 |
75ac8467c00ac2322e5997266724d216
|
|
| BLAKE2b-256 |
50af39bc382244faf84ec84d921703085ae0ee34886cb68ecc775a4642da2e76
|
File details
Details for the file mi_crypto_lib-1.0.7-py3-none-any.whl.
File metadata
- Download URL: mi_crypto_lib-1.0.7-py3-none-any.whl
- Upload date:
- Size: 21.6 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 |
49f34ee28697b0614db9b42be6bccecfe8f69f2095a990ffdc3eafab26d9ec93
|
|
| MD5 |
e9fd038509b387481cda115aadea7f0a
|
|
| BLAKE2b-256 |
a8ab283ef15dd21bde1ce682b71923dd7f13ae0cf3b32d0169a9abb2d76564e7
|