Skip to content

Instantly share code, notes, and snippets.

@AndyNovo
Created November 10, 2021 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndyNovo/38110bcfa0ffb41d0764857c931fe02d to your computer and use it in GitHub Desktop.
Save AndyNovo/38110bcfa0ffb41d0764857c931fe02d to your computer and use it in GitHub Desktop.
64465411115637970916136954444686929852070054591445853328674739386453356579746700654715987777497465609878995571423673622681375312563414383015394333953338838625106192141891195633130198770077277013712996127612759174806508468997980685709841118532107202162538345072442606056746188114342407896252586762080478699717
71
101
58561377073816846455830740528492958326956268633605511779863249428411034280169629018424333138607072173200751667416500980553607331533604508047048803230098486068534247696319422793344562182191157670635105383968351084263090035426661227459548094735796271388853400130898212969120072043414558401613316304371664637709
63508495517306194406372739552324221107987825627723504125187774684629516081669058696415777542682560087827478146430948653788394056486884099734918722768137238235650526150173951787008772377697539059517288627224472963893751186834146105428358164647917740004135378002767543309877002032195553681428303670094202601958
from Crypto.Util.number import *
p=getPrime(512)
q=getPrime(512)
n=p*q
e1=71
e2=101
msg=bytes_to_long("ninja{REDACTED}")
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