Skip to content

Instantly share code, notes, and snippets.

View cypher-nullbyte's full-sized avatar
🎯
Focusing

cYpHeR cypher-nullbyte

🎯
Focusing
View GitHub Profile
@cypher-nullbyte
cypher-nullbyte / rsa.py
Created September 14, 2020 05:59 — forked from ErbaAitbayev/rsa.py
Simple Python RSA for digital signature with hashing implementation. For hashing SHA-256 from hashlib library is used.
import random
from hashlib import sha256
def coprime(a, b):
while b != 0:
a, b = b, a % b
return a