-
-
Save AndyNovo/3774753d7922cf58dead2adfb7205018 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
13422816797626127211358505230172602185822527223098611295265774820872525715707448302634750342543485205568168109105453976131097096502712735513077150010991010044439617459668682576140630303375437632025189575772956488136445791600250806312500201525036249112791836131086677001792456412060900464204757469308391797217952638844574770071660781363621530804010076384527349584290035390307346171053270280636110668774130638646733463562874961092168864252339337636374004694532618388252674719954559498034490347589780785715739835487662477220048093283766825824244784459221315983760261005488433534377762594836841412233399910956055829659727 | |
3 | |
442510863369341076970119795789712862591484640417451315904609857415865522215892673294342168544186224703932563304714919401255757208500195908029268606316665403459204327236650861297603094915305788394532193480216827681125 |
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) | |
p=getPrime(1024) | |
q=getPrime(1024) | |
N=p*q | |
e=3 | |
ct=pow(pt,e,N) | |
print N | |
print e | |
print ct |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment