Urgent help required in using GnuPG

Colin Brown colstar@iprimus.com.au
Sat, 14 Jun 2003 11:15:33 +0800


This is a multi-part message in MIME format.

------=_NextPart_000_0007_01C33266.49A9BEA0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

hi,
Use 

--no-mangle-dos-filenames

it will solve your problem

 

Best Regards

C.

-----Original Message-----
From: gcrypt-devel-admin@gnupg.org [mailto:gcrypt-devel-admin@gnupg.org]
On Behalf Of Chacko Kuruvilla
Sent: Thursday, 12 June 2003 4:24 AM
To: gcrypt-devel@gnupg.org
Subject: Urgent help required in using GnuPG



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. 
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 

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_0007_01C33266.49A9BEA0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<TITLE>Message</TITLE>

<META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D142301403-14062003>hi,</SPAN></FONT></DIV>
<DIV><FONT><SPAN class=3D142301403-14062003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>Use </FONT>
<P><FONT face=3DArial color=3D#0000ff =
size=3D2>--no-mangle-dos-filenames</FONT></P>
<P><SPAN class=3D142301403-14062003><FONT face=3DArial color=3D#0000ff =
size=3D2>it will=20
solve your problem</FONT></SPAN></P>
<P><SPAN class=3D142301403-14062003><FONT face=3DArial color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</P>
<P><SPAN class=3D142301403-14062003><FONT face=3DArial color=3D#0000ff =
size=3D2>Best=20
Regards</FONT></SPAN></P>
<P><SPAN class=3D142301403-14062003><FONT face=3DArial color=3D#0000ff=20
size=3D2>C.</FONT></SPAN></P></SPAN></FONT></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr =
align=3Dleft><FONT=20
  face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B>=20
  gcrypt-devel-admin@gnupg.org [mailto:gcrypt-devel-admin@gnupg.org] =
<B>On=20
  Behalf Of </B>Chacko Kuruvilla<BR><B>Sent:</B> Thursday, 12 June 2003 =
4:24=20
  AM<BR><B>To:</B> gcrypt-devel@gnupg.org<BR><B>Subject:</B> Urgent help =

  required in using GnuPG<BR><BR></FONT></DIV>
  <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=20
  are 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=20
  -r 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=20
  the original filename sample back.</FONT></SPAN></DIV>
  <DIV><SPAN class=3D590515811-10062003><FONT face=3DArial =
color=3D#ff0000=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D590515811-10062003><FONT face=3DArial =
color=3D#ff0000 size=3D2>If=20
  the 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=20
  -r recipient -e sample.txt</FONT></SPAN></DIV>
  <DIV><SPAN class=3D590515811-10062003><FONT color=3D#ff0000>This =
creates the=20
  output file sample.gpg instead of sample.txt.gpg as we would have =
expected.=20
  When we decrypt the file sample.gpg, we get the output filename =
'sample' which=20
  is a 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=20
  -r recipient -e sample.txt.txt</FONT></SPAN></DIV>
  <DIV><SPAN class=3D590515811-10062003><FONT color=3D#ff0000>This =
creates the=20
  output file sample.txt.txt.gpg which is exactly as we would have =
expected.=20
  When we decrypt the file sample.txt.txt.gpg, we get the output =
filename=20
  'sample.txt.txt' 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=20
  the way in which options 2 and 3 are working. Would appreciate some =
feedback=20
  since we need to be able to retrieve the exact original filename when=20
  decrypting 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></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0007_01C33266.49A9BEA0--