-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcapsule.py
13 lines (11 loc) · 2.64 KB
/
capsule.py
1
2
3
4
5
6
7
8
9
10
11
12
13
from Crypto.Util.number import *
c=30263951492003430418944035844723976843761515320480688994488846431636782360488888188067655841720110193942081554547272176290791213962513701884837856823209432209367951673301622535940395295826053396595886942990258678430777333636450042181585837395671842878310404080487115827773100028876775230121509570227303374672524063165714509957850966189605469484201028704363052317830254920108664916139026741331552127849056897534960886647382429202269846392809641322613341548025760209280611758326300214885296175538901366986310471066687700879304860668964595202268317011117634615297226602309205086105573924029744405559823548638486054634428
n=16801166465109052984956796702219479136700692152603640001472470493600002617002298302681832215942994746974878002533318970006820414971818787350153626339308150944829424332670924459749331062287393811934457789103209090873472485865328414154574392274611574654819495894137917800304580119452390318440601827273834522783696472257727329819952363099498446006266115011271978143149347765073211516486037823196033938908784720042927986421555211961923200006343296692217770693318701970436618066568854673260978968978974409802211538011638213976732286150311971354861300195440286582255769421094876667270445809991401456443444265323573485901383
t=6039738711082505929
z=13991757597132156574040593242062545731003627107933800388678432418251474177745394167528325524552592875014173967690166427876430087295180152485599151947856471802414472083299904768768434074446565880773029215057131908495627123103779932128807797869164409662146821626628200600678966223382354752280901657213357146668056525234446747959642220954294230018094612469738051942026463767172625588865125393400027831917763819584423585903587577154729283694206436985549513217882666427997109549686825235958909428605247221998366006018410026392446064720747424287400728961283471932279824049509228058334419865822774654587977497006575152095818
factors=(15013,583343756982313,585503197547927,609245815680559,612567235432583,634947980859229,635224892351513,639438000563939,654170414254271,654269804672441,667954470985657,706144068530309,721443717105973,737993471695639,744872496387077,746232585529679,795581973851653,815694637597057,817224718609627,841183196554507,864339847436159,873021823131881,884236929660113,899583643974479,922745965897867,942872831732189,951697329369323,971274523714349,1017566110290559,1018452110902339,1025985735184171,1027313536626551,1059774237802229,1067609726096989,1070689247726159,1079289330417443,1098516592571807,1107673252158281,1108654254305327,1110918654474373,1111516996694389,1112193819715441)
tot=1
for prime in factors:
tot*=prime-1
l=pow(2,pow(2,t,tot),n)
print(long_to_bytes(l^c^z))