Encrypting a file for anyone to read if having my public key.
Alex Watson
Alex@fundnet.ca
Mon Dec 2 18:45:02 2002
This is a multi-part message in MIME format.
------=_NextPart_000_0000_01C299F8.5ED56E20
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
1. I'd like to encrypt a file preferably in batch mode (no questions asked)
such that I can send it to anyone having my public key and they can decrypt
it.
I thought I read somewhere that this could be done by encrypting to my
secret key, rather than directly to my public key (which only I could
decrypt). However, I can't determine the command syntax/options to do
this.
2. Likewise, once the file is encrypted as such would the syntax for anyone
having my public key to decrypt this file simply be:
gpg --output output.txt --decrypt input.cry
where decrypted output filename is output.txt
and file being decrypted is input.cry and gpg simply scans/tries any key
till it is able to decrypt.
or do I need something similar to --recipient or like --sender and my name
as associated with my public key to indicate which key should decrypt it.
Any help would be much appreciated.
Thanks,
Alex Watson
------=_NextPart_000_0000_01C299F8.5ED56E20
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></HEAD>
<BODY>
<DIV><SPAN class=3D314123517-02122002><FONT face=3DArial size=3D2>1. I'd =
like to=20
encrypt a file preferably in batch mode (no questions asked) such that I =
can=20
send it to anyone having my public key and they can decrypt=20
it.</FONT></SPAN></DIV>
<DIV><SPAN class=3D314123517-02122002><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D314123517-02122002><FONT face=3DArial size=3D2>I =
thought I read=20
somewhere that this could be done by encrypting to my secret key, rather =
than=20
directly to my public key (which only I could decrypt). =
However, I=20
can't determine the command syntax/options to do =
this.</FONT></SPAN></DIV>
<DIV><SPAN class=3D314123517-02122002><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D314123517-02122002><FONT face=3DArial =
size=3D2>2. Likewise,=20
once the file is encrypted as such would the syntax for anyone having my =
public=20
key to decrypt this file simply be:</FONT></SPAN></DIV>
<DIV><SPAN class=3D314123517-02122002><FONT face=3DArial size=3D2>gpg =
--output=20
output.txt --decrypt input.cry</FONT></SPAN></DIV>
<DIV><SPAN class=3D314123517-02122002><FONT face=3DArial size=3D2>where =
decrypted=20
output filename is output.txt</FONT></SPAN></DIV>
<DIV><SPAN class=3D314123517-02122002><FONT face=3DArial size=3D2>and =
file being=20
decrypted is input.cry and gpg simply scans/tries any key till it is =
able to=20
decrypt.</FONT></SPAN></DIV>
<DIV><SPAN class=3D314123517-02122002><FONT face=3DArial size=3D2>or do =
I need=20
something similar to --recipient or like --sender and my name as =
associated=20
with my public key to indicate which key should decrypt =
it.</FONT></SPAN></DIV>
<DIV><SPAN class=3D314123517-02122002><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D314123517-02122002><FONT face=3DArial size=3D2>Any =
help would be=20
much appreciated.</FONT></SPAN></DIV>
<DIV><SPAN class=3D314123517-02122002><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D314123517-02122002><FONT face=3DArial=20
size=3D2>Thanks,</FONT></SPAN></DIV>
<DIV><FONT face=3DArial size=3D2>Alex Watson</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_0000_01C299F8.5ED56E20--