Solved

gnuPG Software - Decryption of file from Unix Shell Script

Posted on 2004-09-08
2
201 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Fibonacci challenge 11 109
changePi Challenge 15 104
advertisement module in core php 4 144
Tax Considerations for positive outcomes, outside the U.S. for IT Professionals 3 36
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…

911 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

20 Experts available now in Live!

Get 1:1 Help Now