Post by xI'm a newbie to PGP and GnuPG and I'm having problems. I installed the
latest GnuPG installation (1.4.9) and I have setup some public/private
keys using the GPA Windows UI.
You might need to sort out the contents of your configuration
file: gpg.conf
The following gpg.conf has worked for me across all platforms of M/S DOS,
M/S Windows, Linux, *BSD, etc. and across all versions of the software,
up to and including GnuPG v1.4.9:
comment ""
default-key 0x<????????????????>
Where: <????????????????> is the last 16 characters of the
fingerprint for your key prefixed by 0x (zero lower case x)
Display fingerprint using command:
gpg --fingerprint "<Your Name>"
Example: default-key 0x9D2B588B2B5C1412
default-recipient-self
encrypt-to "<Your Name>"
Where: <Your Name> is your full name as it appears on your emails
Example: encrypt-to "Joe Smith" (Note the quotation marks)
no-greeting
armor
no-version
The above configuration creates encrypted files that are ASCII armored and
ready for sending as an attachment to a regular email. These files have
a .asc filename suffix.
Post by xBut when I run in the Windows XP cmd window and try to execute the
command
gpg --encrypt "ABC" "MYFILE.TXT" > "MYFILE.TXT.PGP"
Once you have your gpg.conf file sorted out as I've indicated above,
you need to use the correct command syntax, as follows:
Help: gpg -h
Encrypt: gpg -e <file_name_to_encrypt>
Example: gpg -e mysecret.txt
(The above encrypts to yourself only.)
gpg -er "<recipient_name>" <file_name_to_encrypt>
Example: gpg -er "Joe Smith" mysecret.txt
(The above encrypts to yourself and specified recipient.)
Note: You must have the recipient's public key on your
key ring, before you can encrypt to the individual.
Read: gpg -d <encrypted_filename>
Example: gpg -d mysecret.txt.asc
Decrypt: gpg -d <encrypted_filename> > <decrypted_filename>
Example: gpg -d mysecret.txt.asc > NoLongerSecret.txt
Post by xthen I get the error(?) message
usage: gpg [options] --encrypt [filename]
The resulting MYFILE.TXT.PGP is empty. I've been reading all the guides
I can - but nothing seems to cover this issue. What have I done wrong
here?
Many thanks
AB