This is a purely mathematical question on RSA encryption.
Having $e$ as the public key exponent and $n$ the modulus of a public key. Can I recover the md5sum of the private key $d$ (inverse of $d$ according to the modulus.)
Thanks for your help.
This is a purely mathematical question on RSA encryption.
Having $e$ as the public key exponent and $n$ the modulus of a public key. Can I recover the md5sum of the private key $d$ (inverse of $d$ according to the modulus.)
Thanks for your help.
From the public key $(n,e)$ can I recover the md5sum of the private key $d$ (inverse of $d$ according to the modulus).
No, because:
If we can factor $n$, we can efficiently compute $\lambda(n)$. If further $(n,e)$ is a valid public key then we can then efficiently compute the uniquely defined $d=e^{-1}\bmod\lambda(n)$ with $0<d<\lambda(n)$, and efficiently compute its MD5 hash or md5sum using some specified convention.
You cannot get a hash over the entire private key if you've just got $n$ and $e$. You can however create a hash over the modulus $n$. This is sometimes used as identifier for keys within a key pair, e.g. in PKCS#11. Usually SHA-1 is used however, not MD5.
The modulus is unique for RSA key pairs and links the public key and private key together.
md5sum
is a GNU utility that performs MD5, it's not an algorithm in itself.
You can't.
Recovering the md5sum of the private key means uncovering the private key, which is considered impossible for large values of $n$.