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.2.tar.gz (4.9 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.2-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mi_crypto_lib-1.0.2.tar.gz
  • Upload date:
  • Size: 4.9 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.2.tar.gz
Algorithm Hash digest
SHA256 8e399a53d24415cd4fc4c6da3ccb9b56cdcc26e555a472b5ee239038482db0fc
MD5 127c44e56efb3a20b2963e3ca25ef1ce
BLAKE2b-256 23b43dbe3c7b9db0f38da99d5ca115267a7d100cb22413d4cca911407ddb692f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mi_crypto_lib-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 16.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 06d9666fe881eeea52197c25044a7c406875ad7908202ea2f2656d58ec62748f
MD5 e7470ef5625b34e4f28b635621194056
BLAKE2b-256 86df0b6e86ab229bedd63c65f939c0e430f8dbaefb7dae5c6e2016ff73074dc3

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