Linux two way password encryption?
I am looking for a way to encrypt the password for my perl script.
The password is stored in an XML file called config.xml
I have tried before to come up with a way to encrypt the password using various perl modules.
But I keep running into the same problem, decrypting the password.
The problem is either once the password is encrypted I can never get to it again, like it works with crypt
. Or the other problem being I have to include in the other开发者_StackOverflow中文版 script the function to decrypt the password. Therefore making the encrpytion pointless in the first place.
So I got to thinking, what if I use a Linux application instead of a perl module.
So my question pretty much boils down to this,
Is there any application I can install for Debian/Ubuntu that will give me two password encryption that I can use in my perl script?
I must have a way to decrypt the password as it is needed for the SSH connection to the server.
Use ssh-keys instead of a password.
精彩评论