We're generating rsa keys, and would like to store them as public and private base64 hashes, like I'm used to seeing in my ~/.ssh folder on my linux box.
However, we're dealing with the RSA primitives - the n, e, and d values.
How do I generate the base64 hashes out of those values? And vice versa (if it's not obvious).
base64 is an encoding scheme for binary data represented as text, not a hashing algorithm. If you are referring to the fingerprint, it is MD5.
For both the fingerprint and the base64-encoded data, you can consult or even reuse Twisted's Conch implementation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With