On Wed, May 23, 2007 11:05 am, Allan Wind wrote:
> On 2007-05-23T09:59:22-0500, Tom Purl wrote:
>> Is there anyone else who's usuing gpg or openssl
>> with Vim?
>
> I use one of the gpg plugins all the time:
> http://www.vim.org/scripts/script.php?script_id=1751

Problem solved.

Thanks Allan.  I was hoping to find an openssl solution since I'm so
familiar with it and prefer symmetric to asymmetric encryption.

However, since the gpg.vim plugin is so robust, and since it works with
Windows, I decided to take a closer look at gpg.  It turns out that I
can use symmetric (password-only) encryption with gpg, and that the
gpg.vim plugin supports it very well.

I therefore "converted" my old encrypted file to use gpg encryption
using the following commands on Windows:

    c:\foo> dir
    05/23/2007  10:42 AM               312 secret.txt.des3

    c:\foo> openssl enc -d -des3 -in .\secret.txt.des3 -out .\secret.txt
    (entered password)

    c:\foo> dir
    05/23/2007  10:45 AM               312 secret.txt
    05/23/2007  10:42 AM               312 secret.txt.des3

    c:\foo> gpg --symmetric --output .\secret.txt.gpg .\secret.txt
    (entered password twice)

    c:\foo> dir
    05/23/2007  10:45 AM               312 secret.txt
    05/23/2007  10:42 AM               312 secret.txt.des3
    05/23/2007  10:46 AM               312 secret.txt.gpg

    c:\foo> sdelete .\secret.txt

    c:\foo> dir
    05/23/2007  10:42 AM               312 secret.txt.des3
    05/23/2007  10:46 AM               312 secret.txt.gpg

I could then transparently edit the file using vim once I had installed
the gpg.vim plugin.

Thanks to everyone for their help, especially Markus Braun for writing
such an excellent plugin.

Tom Purl


Reply via email to