crypto.ssh_pubkey_fingerprint

crypto

ssh_pubkey_fingerprint(pubkey) -> fingerprint, err

Compute the hex-encoded SHA-256 fingerprint of an Ed25519 public key

Hashes the raw 32-byte Ed25519 public key with SHA-256 and returns lowercase hex. Returns nil and a reason if pubkey is not a 32-byte string.