[pycrypto] adding ssh keys support in distutils2

Aljoša Mohorović aljosa.mohorovic at gmail.com
Tue Feb 22 16:42:46 CST 2011


On Tue, Feb 22, 2011 at 9:23 PM, Legrandin
<gooksankoo at hoiptorrow.mailexpire.com> wrote:
> Right now ssh keys cannot be imported in pycrypto (although I have
> been planning for a while to add that).
> Is that important to you?

it is, i need access to identities available to the authentication agent.
basically i need anything added with "ssh-add <key>" although i can
get everything with something like:
>>> os.system("ssh-add -L")

> Once the keys are in python at the sender, you can concatenate and
> pass the file and the request headers through a hash function (like
> SHA), and then sign the resulting hash using RSA.sign.
>
> At the other end, you do the same hash and pass it to RSA.verify
> (where RSA is the public half only) together with the signature you
> received from the sender.

thanks for info.

Aljosa


More information about the pycrypto mailing list