How do I use gpg to decrypt encrypted files????

Laurent Jumet laurent.jumet at skynet.be
Thu Sep 10 00:08:30 CEST 2009


Hello BosseB !

BosseB <bo.berglund at telia.com> wrote:

> I have a number of encrypted files, which I need to decrypt. I have
> installed GPG 1.4.9 on my Windows XP-Pro SP3 PC. I have the necessary
> keyrings and they work with Thunderbird and Enigmail.
> But as I said I need to decrypt files that are on my hard disk, not in
> an email....
> I tried this command in a command window:
>  gpg -d <asc filename>
> I got a prompt for my passphrase and as soon as I entered this the
> window filled with large amounts of strange characters and the PC
> speaker started to beep and never would stop.
> I finally had to use ProcessExplorer and kill the cmd process to get
> silence. :-(

    If you don't specify the final file, GPG writes it to stdout (the screen); and if the file contains non ASCII carachters, you'll get full of garbage.
    You should use instead:
gpg --yes --output finalfile encrypted.asc
    (The "-D" is not mandatory as GPG assumes you want to decrypt).

    But there is an easier way: install GPGShell and you only need to rightclick on the file and call the appropriate decrypting menu:
http://www.jumaros.de/rsoft/index.html

-- 
Laurent Jumet
      KeyID: 0xCFAF704C



More information about the Gnupg-users mailing list