Skip to content

How to get full base64 of public key? #52

@raxod502

Description

@raxod502

Basically, I want the result of

base64.b64encode(my_public_key._decoded_key)

except that this relies on the internal attribute SSHKey._decoded_key. If I could access my_public_key._decoded_key directly, that would work as well.

My use case is that I am given a list of SSH fingerprints in the format printed by ssh-add -L, and I have to figure out whether a given key is registered in the agent or not, based on the public key file which I'm parsing using python-sshpubkeys.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions