Hi All,
I have a bash script that will unencrypt a file, use the unencrypted file for a very short time and then delete the unencrypted file.
The problem is that my password is in clear text
Code:
openssl des3 -d -salt \
-out tempFile \
-in encryptedFile.des3 \
-pass pass:clearTextPassword
Obviously this isn't so secure, but I need the script to be non-interactive. How do I hash, encrypt or otherwise make secure the password for the openssl command?
I know that the openssl can protect passwords, e.g.:
openssl passwd -crypt "password"
But can I use this protected password in my script?
Any advice would be most appreciated!