-
-
Save AndyNovo/9ade60dfbca27af044d39280b710751a 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
139357869797306355505899062219286311121136461163346990584915183941380306773094389892616720868423669506756126445560356865903957008326126492935674900355629687770493324996687026523842459242445574079755555799802327730180563617532833699169587340258786219370527960881418267286372927975661966612753834984995304592769 | |
125659569199460364765412433561973062397351394887135800650057634614771817231671236224610454689022735798303371366496402143387888480066621300831420403230058300025999030443619689872706000580848987811072037659174036593588212314527736972812638626750368334289667588637306762505788936481385422083644722176948210460593 | |
146836931546104070899286316394205852019635137914088891257402887950393182314460987823756756958032154862285045729915121368845903473303037884507232067224477447749463956253743557450592120938003218455470690687187808925169602154081596884142097252709210434098270723316171010633686781463349957158888107514344558115359 | |
3 | |
121568092197361110904088263046889576685621447806787805189261999155568088531208696530670605123169904799693686532671514358703615179364237863874614986844905897757950766535827505327626590559439426829890955325334422767928484518506760197745318302112885359216558587819381242865222497690305689565918454517669945148443 | |
39323791910757799556545176564458642001954573196337332351476222986285065784270804268966863366675218524851360176890522079422358509410836264352132513471374494595288678534720968703131945460777882486873755432399883677896879674295634710553113809710204414672591400917241935089692965734435479614235889555849641960360 | |
96048938328261463984186814710308594637497422101992699068094095596515631497981389773557227387998695092246237361888547068096097871008630341716266031028976481020117771662862701950062529151839606450033864554293251548103900572134870998757875236330673259110750117982228381202920437472199344584456202346564387992939 |
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 * | |
msg="ninja{REDACTED}" | |
pt=bytes_to_long(msg) | |
p1=getPrime(512) | |
q1=getPrime(512) | |
N1=p1*q1 | |
e=3 | |
ct1=pow(pt,e,N1) | |
p2=getPrime(512) | |
q2=getPrime(512) | |
N2=p2*q2 | |
ct2=pow(pt,e,N2) | |
p3=getPrime(512) | |
q3=getPrime(512) | |
N3=p3*q3 | |
ct3=pow(pt,e,N3) | |
print N1 | |
print N2 | |
print N3 | |
print e | |
print ct1 | |
print ct2 | |
print ct3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment