Gentoo Archives: gentoo-user

From: Alec Ten Harmsel <alec@××××××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] how best to encrypt a file
Date: Tue, 03 Jul 2018 21:37:33
Message-Id: 20180703213720.GC4305@localhost.localdomain
In Reply to: Re: [gentoo-user] how best to encrypt a file by Philip Webb
1 On Tue, Jul 03, 2018 at 07:27:35AM -0400, Philip Webb wrote:
2 > 180703 Alec Ten Harmsel wrote:
3 > > On Tue, Jul 03, 2018 at 05:47:22AM -0400, Philip Webb wrote:
4 > >> I have a couple of small files which need to be encrypted :
5 > >> one is simple text ( .txt ), the other a spreadsheet ( .ods ).
6 > >> I haven't used encryption like this before : what do others use ?
7 > > I have used `gpg' to do this before:
8 > > # Encrypt with a passphrase
9 > > gpg -c <file>
10 > > # Decrypt
11 > > gpg -d <file>.gpg
12 > > I do have some files I keep encrypted locally
13 > > that I use `gpg' to encrypt/decrypt, but with my personal key pair.
14 > > For that, I use a vim plugin [1] that transparently decrypts to `/tmp',
15 > > lets me edit and then saves back to the original file.
16 > > This prevents the decrypted contents from ever being on my hard drive,
17 > > as I have `/tmp' mounted as tmpfs.
18 >
19 > Thanks, that's very helpful except that you forgot to append [1] (smile).
20
21 Ouch. I meant to link to https://github.com/jamessan/vim-gnupg.
22
23 > I don't need to encrypt the files locally,
24 > but do need to when I create copies to up-load as off-site back-ups.
25
26 Someone else mentioned duplicity, which I've used in the past. It's
27 built to do encrypted backups to S3/Dropbox/scp.
28
29 Alec