# Using gpg

**URL:** <https://community.unix.com/t/using-gpg/311031>\
**Category:** UNIX and Linux Applications\
**Created:** [May 30, 2012, 2:36am UTC](https://community.unix.com/t/using-gpg/311031 "2012-05-30T02:36:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tcssk](https://community.unix.com/letter_avatar/tcssk/32/5_5575768a8748004e209b776fc1b2916d.png) [@tcssk](https://community.unix.com/u/tcssk)\
**Post date:** [May 30, 2012, 2:36am UTC](https://community.unix.com/t/using-gpg/311031/1 "2012-05-30T02:36:54Z")

</div>

I am trying to use gig in linux but it is hanging.

```nohighlight
$ gpg --passphrase=test /tmp/test.sh
Reading passphrase from file descriptor 0 ...

```

When i press enter, it gives the below message:

```nohighlight
$ gpg --passphrase=test /tmp/test.sh
Reading passphrase from file descriptor 0 ...
gpg: no valid OpenPGP data found.
gpg: processing message failed: eof

[applsuprt@rvbd-chi-spap01 tmp]$ gpg --batch --passphrase=test /tmp/test.sh

gpg: no valid OpenPGP data found.
gpg: processing message failed: eof

```

Could you please help.  
We are using below linux:

Red Hat Enterprise Linux AS release 4 (Nahant Update 8)

---

<div class="post-metadata">

**Author:** ![fpmurphy](https://community.unix.com/user_avatar/community.unix.com/fpmurphy/32/110_2.png) [@fpmurphy](https://community.unix.com/u/fpmurphy)\
**Post date:** [May 30, 2012, 9:29am UTC](https://community.unix.com/t/using-gpg/311031/2 "2012-05-30T09:29:29Z")

</div>

What are you expecting to happen with this command? That /tmp/test.sh is encrypted?
