How to encrypt database password in the perl script? Currently I have database password stored in the perl script, and CGI scripts uses this perl script to connect to database. I would like to encrypt the database password in separate file.
I have shell script to encrypt password file. I have shell command to read encrypted file, but don't know how to use that in CGI/PERL.
Shell Command:
DB=`crypt $key_pw < login_file`;
I have shell script to encrypt password file. I have shell command to read encrypted file, but don't know how to use that in CGI/PERL.
Shell Command:
DB=`crypt $key_pw < login_file`;