Skip to main content

pubkey_fingerprint

Function pubkey_fingerprint 

Source
pub fn pubkey_fingerprint(pubkey: &VerifyingKey) -> String
Expand description

Compute the SSH fingerprint of a pubkey (matches ssh-keygen -l -E sha256).

Hashes the SSH wire-format blob (u32be(11) “ssh-ed25519” u32be(32) ) with SHA-256 and encodes as standard base64 without padding, prefixed “SHA256:”.