1
0
Fork 0
mirror of https://github.com/dirtbags/moth.git synced 2025-01-09 05:20:54 -07:00
moth/packages/crypto/diffie.py

9 lines
156 B
Python
Raw Normal View History

prime = 51237129793
mod = 321454621
a = 341
A = prime ** a % mod
b = 573
B = prime ** b % mod
key = A**b % mod
assert B**a % mod == key, 'Bad diffie math.'