Standard way to hash an RSA key?

Posted by Adam J.R. Erickson on Stack Overflow See other posts from Stack Overflow or by Adam J.R. Erickson
Published on 2011-06-23T21:30:32Z Indexed on 2011/06/24 8:23 UTC
Read the original article Hit count: 356

What's the algorithm for creating hash (sha-1 or MD5) of an RSA public key? Is there a standard way to do this? Hash just the modulus, string addition of both and then take a hash? Is SHA-1 or MD5 usually used?

I want to use it to ensure that I got the right key (have the sender send a hash, and I calculate it myself), and log said hash so I always know which exact key I used when I encrypt the payload.

© Stack Overflow or respective owner

Related posts about encryption

Related posts about hash