Generate SSH key fingerprints in both the legacy MD5 colon-hex form and the modern SHA256 base64 form, from cryptographically random bytes. Ideal for populating SSH key management screens and deployment config with realistic placeholders.
How it works
OpenSSH fingerprints a public key by hashing its blob and displaying the digest. Two display conventions exist:
MD5 16 bytes -> "MD5:" + colon-separated lowercase hex
SHA256 32 bytes -> "SHA256:" + unpadded base64
The tool draws the right number of random bytes from Web Crypto and renders them
in the chosen convention, including the modern habit of stripping the base64
= padding. The bytes are random, not a hash of any real key, so the result is
a safe stand-in.
Tips and notes
Match the format to your OpenSSH era: very old clients showed MD5 by default,
while current ones default to SHA256. The optional key-type label (RSA, ECDSA,
ED25519) is cosmetic — never add a generated fingerprint to known_hosts or
authorized_keys, since it authenticates nothing.