fork download
  1. from Crypto.Util.number import getPrime, inverse, bytes_to_long
  2. from string import ascii_letters, digits
  3. from random import choice
  4.  
  5.  
  6. mini = 10**100
  7.  
  8. for i in range(10):
  9.  
  10. m = "".join(choice(ascii_letters + digits) for _ in range(16))
  11. p = getPrime(128)
  12. q = getPrime(128)
  13. n = p * q
  14. e = 65537
  15. d = inverse(e, (p - 1) * (q - 1))
  16.  
  17. c= pow(bytes_to_long(m.encode()), e, n)
  18. mini = min(mini, d)
  19.  
  20. print(mini)
Success #stdin #stdout 0.06s 11704KB
stdin
Standard input is empty
stdout
9130449781799768623152255810882236027857336133927975820857815898352567602273