CRYPTO
Python3 implementation of Cryptographic attacks. Applcations examples introduced on my blog.
Install / Use
/learn @ndiab/CRYPTOREADME
CRYPTOGRAPHY PROJECT
Realised in the context of the Master's course of Advanced Cryptography taught at the University Pierre and Marie Curie (UPMC, Paris, FRANCE)
This project contains the implemetation of some cryptosystems, artithmetic objects and attacks against them. This project is fully implemented in python language.
Currently contents implemented :
- Asymetric cryptosystems
- RSA
- RSA_CRT
- ECC
- Symetric cryptosystems
- IDEA
- Arithmetic objects
- extended euclide's algorithm
- Chiness Remainder Theorem (CRT)
- Continued fraction computation
- modular arithmetic
- modular division
- fast exponentiation
- inverse
- Large numbers
- prime number generation
- Rabin Miller algorithm
- Square root for large numbers
- prime number generation
- Attacks
- Bellcore - RSA_CRT (Fault Attack)
- Broadcast - RSA
- Wiener - RSA
- Baby Step Giant Step
TEST
For checking if the contents works correctly, run on the project's root the following command :
python3 Test.py
AUTHORS
- Nabil Diab - nabil.diab59@gmail.com
Acknowledgment
- Maeva Benoit, Sebastien Coll ( @y0a0bon ) and Benoit Le Caruyer de Beauvais for helping
- Guenael Renault who's taught the course
Related Skills
node-connect
349.7kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
109.7kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
109.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
349.7kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
