LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   GPG with out passphrase option for decryption (https://www.linuxquestions.org/questions/linux-newbie-8/gpg-with-out-passphrase-option-for-decryption-736950/)

vjayraghavan 07-01-2009 09:09 AM

GPG with out passphrase option for decryption
 
hi,

Is there any way to over ride gpg passphrase option like the below code..

Code:

gpg -o <out file name> -d <file name to be decrypted>
Because in some scripts in my work environment ppl have just given this command...
I am not sure how it works... i normally use the below code

Code:

/bin/echo "$PASSWORD" | gpg --yes --passphrase-fd 0 -o <out file> -d <decrypt file>
can some one help me to attain the gpg possiblity for not mentioning the passphrase..

Thanks in advance...

fpmurphy 07-01-2009 09:12 AM

man gpg


All times are GMT -5. The time now is 04:26 PM.