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.
Basically, I want the result of
except that this relies on the internal attribute
SSHKey._decoded_key. If I could accessmy_public_key._decoded_keydirectly, 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 usingpython-sshpubkeys.