Solved

gnuPG Software - Decryption of file from Unix Shell Script

Posted on 2004-09-08
2
200 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
2 Comments
 
LVL 23

Accepted Solution

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

Author Comment

by:Kedar_Acharya
Comment Utility
Thanks for your answer
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now