>python steg.py misc.png -p Enter password (will not be echoed): 3557736c7371495153424738633644326d352f4b5277672b36676a6d3174723144513855794a556d495a733dk:luckyone
from Crypto.Util.number import getPrime, bytes_to_long from Crypto.Util.strxor import strxor from Crypto.PublicKey import RSA
defdecrypt(c, N, d): m = pow(c, d, N) #rsa_decrypt origin = 24#in(xor_key) xor_key = m.to_bytes(origin, byteorder='big') key = b'Life is like an ocean on' msg = strxor(xor_key, key) msg = msg.decode() return msg #message = decrypt(ciphertext, N, d) #print(message)
d = 4885628697024674802233453512637565599092248491488767824821990279922756927662223348312748794983451796542248787267207054348962258716585568185354414099671493917947012747791554070655258925730967322717771647407982984792632771150018212620323323635510053326184087327891569331050475507897640403090397521797022070233 N = 89714050971394259600440975863751229102748301873549839432714703551498380713981264101533375672970154214062583012365073892089644031804109941766201243163398926438698369735588338279544152140859123834763870759757751944228350552806429642516747541162527058800402619575257179607422628877017180197777983487523142664487 c = 67254133265602132458415338912590207677514059205474875492945840960242620760650527587490927820914970400738307536068560894182603885331513473363314148815933001614692570010664750071300871546575845539616570277302220914885734071483970427419582877989670767595897758329863040523037547687185382294469780732905652150451