encrypting text files in-place

Alex Hunsaker badalex at gmail.com
Sun Jun 24 10:21:09 PDT 2007


On 6/24/07, Kevin Day <thekevinday at gmail.com> wrote:
> On 6/23/07, Robert Connolly <robert at linuxfromscratch.org> wrote:
> > Hello. Do any of you know of a portable way to safely edit encrypted text
> > files transparently. Like 'cat foo.gpg | gpg -v -d | vim - |
> > gpg -v -c --output foo.gpg'... except that vim doesn't write to stdout, and
> > vim creates clear text .swap files.
> >
> > With either openssl or gnupg, piped to an editor which doesn't create swap
> > files, and prints to stdout. Portable in that it's possible to decrypt the
> > file on a foreign system (bsd/windows), if needed, and without root.
> >
> > robert
> >
>
> As far as the swap files this would be useful:
> http://www.vim.org/tips/tip.php?tip_id=907

Looks like it might do what you want, or can be tweaked that way
http://www.vim.org/tips/tip.php?tip_id=1251

> --
> Kevin Day
> --
> http://linuxfromscratch.org/mailman/listinfo/hlfs-dev
> FAQ: http://www.linuxfromscratch.org/faq/
> Unsubscribe: See the above information page
>



More information about the hlfs-dev mailing list