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