Solved

gnuPG Software - Decryption of file from Unix Shell Script

Posted on 2004-09-08
2
208 Views
Last Modified: 2010-04-17
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
Comment
Question by:Kedar_Acharya
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 23

Accepted Solution

by:
Mysidia earned 50 total points
ID: 12011032
cat /path/to/secret/passphrase <>5 | gpg --passphrase-fd 5 --decrypt filename.gpg
0
 

Author Comment

by:Kedar_Acharya
ID: 12039427
Thanks for your answer
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A short article about problems I had with the new location API and permissions in Marshmallow
Make the most of your online learning experience.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Introduction to Processes

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question