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.9.tar.gz
(15.1 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.9.tar.gz.
File metadata
- Download URL: mi_crypto_lib-1.0.9.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12235439cac241cfbb78dcc292d8894933b078332d1d4734b2ee3a4139f33699
|
|
| MD5 |
8d9ff2f233023894298948c5025b7a06
|
|
| BLAKE2b-256 |
26a10709bc0a086a1845837fe395ea91e8750064eef4f3be8314a969c02cf410
|
File details
Details for the file mi_crypto_lib-1.0.9-py3-none-any.whl.
File metadata
- Download URL: mi_crypto_lib-1.0.9-py3-none-any.whl
- Upload date:
- Size: 25.4 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 |
a3b83e03a0f89866b872977fe95483757a1c4adf52c52badb6654a75ed3c5d6f
|
|
| MD5 |
0dc378da8ff08b9f5ef90317389c114d
|
|
| BLAKE2b-256 |
194baeead8c5398e27ade8e2d9d31d248f6c6909c47522ef7aef805d6f998aef
|