Solved

gnuPG Software - Decryption of file from Unix Shell Script

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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VbScript to countdown to New Year's Day 6 94
Formula for calculating ROI on training 6 92
convert Systemjs to Webpack 3 129
Convert number to hex in Lua 16 95
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
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.
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…

751 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