0
$\begingroup$

I have a ciphertext which has been padded with spaces from left the message is 31 bytes long and e = 3 how can I recover the message with python code .

$\endgroup$
2
  • $\begingroup$ Do you have the private key or are you requesting cryptanalysis of it? $\endgroup$
    – arcaynia
    Commented Jul 15, 2020 at 22:01
  • $\begingroup$ Welcome to crypto-SE! Precise description matters in cryptanalysis. In RSA, padding is usually applied not to the ciphertext, but to the plaintext (the message). Padding turns the message into an integer $m$, then encrypted by $c\gets m^e\bmod N$. How characters are encoded into $m$ is important. Assuming plaintext padding with space encoded to digit zero, and (per standard assumption) known public modulus, this question is among the common attacks, and was thus closed. If that's inadequate, edit the question with details, and ask reopening. $\endgroup$
    – fgrieu
    Commented Jul 16, 2020 at 1:49

0