Urgent help required in using GnuPG

Chacko Kuruvilla cvilla@jpninc.com
Wed, 11 Jun 2003 15:23:33 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_0149_01C3302D.6C0256A0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

I am trying to use GnuPG in our encryption and decryption programs. I =
have a problem.

The problem is as follows:
We are using GnuPG Ver. 1.2.2 on WinNT.=20
When we need to encrypt a file with filename 'sample', we use the =
command
gpg -r recipient -e sample
This creates a file names sample.gpg. This is fine since when we =
decrypt, we get the original filename sample back.

If the filename is changed to sample.txt, we run the following command
gpg -r recipient -e sample.txt
This creates the output file sample.gpg instead of sample.txt.gpg as we =
would have expected. When we decrypt the file sample.gpg, we get the =
output filename 'sample' which is a problem.

If the filename is changed to sample.txt.txt, we run the following =
command=20
gpg -r recipient -e sample.txt.txt
This creates the output file sample.txt.txt.gpg which is exactly as we =
would have expected. When we decrypt the file sample.txt.txt.gpg, we get =
the output filename 'sample.txt.txt' which is fine.

We cannot understand the anomaly between the way in which options 2 and =
3 are working. Would appreciate some feedback since we need to be able =
to retrieve the exact original filename when decrypting files.

Regards,
Chacko Kuruvilla,
JPN Associates, Inc.
cvilla@jpninc.com
(630) 836-8091

------=_NextPart_000_0149_01C3302D.6C0256A0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2722.900" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am trying to use GnuPG in our =
encryption and=20
decryption programs. I have a problem.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>
<DIV><SPAN class=3D590515811-10062003><FONT face=3DArial color=3D#ff0000 =
size=3D2>The=20
problem is as follows:</FONT></SPAN></DIV>
<DIV><SPAN class=3D590515811-10062003><FONT face=3DArial color=3D#ff0000 =
size=3D2>We are=20
using GnuPG Ver. 1.2.2 on WinNT. </FONT></SPAN></DIV>
<DIV><SPAN class=3D590515811-10062003><FONT face=3DArial color=3D#ff0000 =
size=3D2>When=20
we need to encrypt a file with filename 'sample', we use the=20
command</FONT></SPAN></DIV>
<DIV><SPAN class=3D590515811-10062003><FONT face=3DArial color=3D#ff0000 =
size=3D2>gpg -r=20
recipient -e sample</FONT></SPAN></DIV>
<DIV><SPAN class=3D590515811-10062003><FONT face=3DArial color=3D#ff0000 =
size=3D2>This=20
creates a file names sample.gpg. This is fine since when we decrypt, we =
get the=20
original filename sample back.</FONT></SPAN></DIV>
<DIV><SPAN class=3D590515811-10062003><FONT face=3DArial color=3D#ff0000 =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D590515811-10062003><FONT face=3DArial color=3D#ff0000 =
size=3D2>If the=20
filename is changed to sample.txt, we run the following=20
command</FONT></SPAN></DIV>
<DIV><SPAN class=3D590515811-10062003><FONT face=3DArial size=3D2>
<DIV><SPAN class=3D590515811-10062003><FONT face=3DArial color=3D#ff0000 =
size=3D2>gpg -r=20
recipient -e sample.txt</FONT></SPAN></DIV>
<DIV><SPAN class=3D590515811-10062003><FONT color=3D#ff0000>This creates =
the output=20
file sample.gpg instead of sample.txt.gpg as we would have expected. =
When we=20
decrypt the file sample.gpg, we get the output filename 'sample' which =
is a=20
problem.</FONT></SPAN></DIV>
<DIV><SPAN class=3D590515811-10062003><FONT=20
color=3D#ff0000></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D590515811-10062003><FONT color=3D#ff0000>If the =
filename is=20
changed to sample.txt.txt, we run the following command </FONT>
<DIV><SPAN class=3D590515811-10062003><FONT face=3DArial size=3D2>
<DIV><SPAN class=3D590515811-10062003><FONT face=3DArial color=3D#ff0000 =
size=3D2>gpg -r=20
recipient -e sample.txt.txt</FONT></SPAN></DIV>
<DIV><SPAN class=3D590515811-10062003><FONT color=3D#ff0000>This creates =
the output=20
file sample.txt.txt.gpg which is exactly as we would have expected. When =
we=20
decrypt the file sample.txt.txt.gpg, we get the output filename =
'sample.txt.txt'=20
which is fine.</FONT></SPAN></DIV>
<DIV><SPAN class=3D590515811-10062003><FONT=20
color=3D#ff0000></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D590515811-10062003>We cannot understand the anomaly =
between the=20
way in which options 2 and 3 are working. Would appreciate some feedback =
since=20
we need to be able to retrieve the exact original filename when =
decrypting=20
files.</SPAN></DIV>
<DIV><SPAN=20
class=3D590515811-10062003></SPAN>&nbsp;</DIV></FONT></SPAN></DIV></SPAN>=
</DIV></FONT></SPAN></DIV></DIV></DIV>
<DIV><FONT face=3DArial size=3D2>Regards,<BR>Chacko Kuruvilla,<BR>JPN =
Associates,=20
Inc.<BR><A =
href=3D"mailto:cvilla@jpninc.com">cvilla@jpninc.com</A><BR>(630)=20
836-8091</FONT></DIV></FONT></DIV></BODY></HTML>

------=_NextPart_000_0149_01C3302D.6C0256A0--