Skip to content

Instantly share code, notes, and snippets.

View rharael's full-sized avatar
🏠
Working from home

Wendel Rharael rharael

🏠
Working from home
View GitHub Profile
@VAD3R-95
VAD3R-95 / hastad_attack(rsa).py
Last active February 24, 2025 02:29
RSA attacks: factorisation, weiner, common modulus
import gmpy2
import binascii
e = 3
c1 = gmpy2.mpz("")
n1 = gmpy2.mpz("")
c2 = gmpy2.mpz("")
n2 = gmpy2.mpz("")
c3 = gmpy2.mpz("")
n3 = gmpy2.mpz("")