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.6.tar.gz
(10.9 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.6.tar.gz.
File metadata
- Download URL: mi_crypto_lib-1.0.6.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7230603c22a5cf005abd3b5b9d0ea11954c1b2fd2f82356ac2c0340b4d60bf10
|
|
| MD5 |
fe41d1997f16d8c92e920562a9aff76d
|
|
| BLAKE2b-256 |
4b9a344635d464a6d0a1cc19c1bae0a8e4b9f6c16f08cb30c832ac1af88874d0
|
File details
Details for the file mi_crypto_lib-1.0.6-py3-none-any.whl.
File metadata
- Download URL: mi_crypto_lib-1.0.6-py3-none-any.whl
- Upload date:
- Size: 20.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 |
1417b915cbf3ebd7c9a4b3a99491997a880a5b4bbd9ddae9c7bffbd5a746f470
|
|
| MD5 |
294650c387b6390427b8cbfa39a1085c
|
|
| BLAKE2b-256 |
0c8bb984354bcc9c8cac7844861e202697f485f474a704be8b94c1e9516868dd
|