mirror of
https://github.com/dirtbags/moth.git
synced 2025-01-08 21:11:06 -07:00
8 lines
156 B
Python
8 lines
156 B
Python
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.'
|