views:

336

answers:

2

I have the key pair generated by the GPG. Now I want to use the public key for encrypting the password. I need to make a function in Python. Can somebody guide me on how to do this?

I studied the Crypto package but was unable to find out how to encrypt the password using the public key.

I also read about the chilkat Python encryption library, but it is not giving the desired output. Maybe I don't how to use this library at the SSH secure shell client. Please guide me.

Thanks

+1  A: 

Have a look at PyGPGME

Peter
+1  A: 

See also the answers provided to the following questions found in this search

Python Encryption questions at Stack Overflow :

maengle