Skip to content

feature request - ssh public key fingerprints #12132

@user3472g

Description

@user3472g

Perhaps the feature is there but I cannot find it.

Is there a way to obtain the md5 or sha256 fingerprint of a public key?

With ed25519 it can be done as:

hashlib.md5(key.public_bytes_raw()).hexdigest()

Other format do not support Raw encoding.

Seems wasteful to have to base64 or DER decode the key bytes, again, to get the raw bytes for hashing.

thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions