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 … to encrypt password by the public key ..how can i do this ,which library is best and easy to prefer.i have to work on ssh secure shell client. thanks