-
-
Save AndyNovo/da1824123497fd6b171e7841b9e16d6d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
83975906068913096087588073656733813065150079680554091274063943640137411203738048898825466090943807255988544566860854049474947301645295520091854742379750568618644135348427288756118592198065499745363223121777693215626431459443581274310405329745053221664430446590615799136315320601602466127908893663288510786647 | |
32 | |
94 | |
31659303751736868834891607684257048871936469115435374460897544640358688152143391231335725802483652002853857871125668245943760603394728761252879976388024157769458566058146911391377980917754982293857492895084583497754242013075227091249894251994577599565876140586352080527122583984057527835456792107351001273371 | |
80631255872849483189681834513333445504508097366732545088786719985243190012498962492861373574228032385521237268594175662345687123627071227685335548200658623222458056857018655759372284555883617659475594683515229574674885138866511603279561476518226015503565930696987458835787372259198845197968475724855675819806 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from Crypto.Util.number import * | |
p=getPrime(512) | |
q=getPrime(512) | |
n=p*q | |
e1=32 | |
e2=94 | |
msg=bytes_to_long("ninja{REDACTED}") | |
assert(pow(msg,2) < n) | |
c1 = pow(msg, e1, n) | |
c2 = pow(msg, e2, n) | |
print(n) | |
print(e1) | |
print(e2) | |
print(c1) | |
print(c2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment