Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 213
  • Last Modified:

gnuPG Software - Decryption of file from Unix Shell Script

Hi
I am using gnuPG software for encryption and decryption of files on UNIX o/s. From the unix shell script, I wanted to decrypt file using gnuPG software. Script is going in wait mode till I enter passphrase for decryption. How could I pass passphrase to shell script so that file will be decrypted in automatic environment.

Please suggest.

Regards
Kedar
0
Kedar_Acharya
Asked:
Kedar_Acharya
1 Solution
 
MysidiaCommented:
cat /path/to/secret/passphrase <>5 | gpg --passphrase-fd 5 --decrypt filename.gpg
0
 
Kedar_AcharyaAuthor Commented:
Thanks for your answer
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now