1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| from Crypto.Util.number import * from gmpy2 import invert e = 65537 n = 36618139579386063246087882054063631367923586826293230665209915187491823328978276724908066032487515386697740611819366867179565337532194305783987450587518624526250530134446397 c = 3053043969587277731075013823380664207370991627277672374256662715889363487017560381573682876563907215099359894935326265406537547932246927604121814198201993671878573628633125 factors = [521, 521, 521, 541, 547, 557, 557, 577, 587, 593, 601, 607, 631, 631, 631, 631, 641, 643, 683, 701, 701, 719, 727, 727, 727, 733, 739, 739, 743, 757, 761, 769, 773, 787, 787, 809, 821, 821, 821, 863, 877, 877, 881, 907, 907, 907, 907, 907, 919, 919, 929, 937, 953, 953, 967, 967, 991, 997, 997, 1019] _n = 1 for i in list(set(factors)): _n *= (i - 1) factors.remove(i) for i in factors: _n *= i d = invert(e, _n) m = pow(c, d, n) print(long_to_bytes(m))
|