Skip to content

Public key fingerprint #11

@sirex

Description

@sirex

Use this:

encoding = serialization.Encoding.DER
format = serialization.PublicFormat.SubjectPublicKeyInfo
public_key_bytes = public_key.public_bytes(encoding, format)
fingerprint = hashlib.sha1(public_key_bytes).hexdigest()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions