1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
import gmpy2 n = 920139713 e = 19 # for i in range(1,n): # if(int(n/i) == n/i): # print(i)
''' p = 18443 q = 49891 ''' p = 18443 q = 49891 d = gmpy2.invert(e,(p-1)*(q-1)) print(d) ''' d = 96849619 ''' d = 96849619
str = [ 704796792, 752211152, 274704164, 18414022, 368270835, 483295235, 263072905, 459788476, 483295235, 459788476, 663551792, 475206804, 459788476, 428313374, 475206804, 459788476, 425392137, 704796792, 458265677, 341524652, 483295235, 534149509, 425392137, 428313374, 425392137, 341524652, 458265677, 263072905, 483295235, 828509797, 341524652, 425392137, 475206804, 428313374, 483295235, 475206804, 459788476, 306220148]
for i in str: x = gmpy2.powmod(i,d,n) print(chr(x),end='')
|