(question) Encrypting a single file

Brandon bsandrow-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Mon Apr 4 04:05:57 UTC 2011


On Sat, Mar 26, 2011 at 01:15:30PM -0400, William Park wrote:
> On Sat, Mar 26, 2011 at 10:40:07AM -0400, Mike Kallies wrote:
> > On 3/25/2011 8:57 PM, William Park wrote:
> > > On Fri, Mar 25, 2011 at 08:26:21PM -0400, Scott Elcomb wrote:
> > >> vim -x  (or, from within vim use ":X")
> >
> > > Yes!  That's what I was looking for.  I didn't know Vim had that.
> > > Thanks Scott.
> > 
> > Careful:
> > 
> > http://stackoverflow.com/questions/575817/vim-encryption-how-to-break-it
> > 
> > "The algorithm used is breakable. A 4 character key in about one hour, a
> > 6 character key in one day (on a Pentium 133 PC). This requires that you
> > know some text that must appear in the file. An expert can break it for
> > any key. When the text has been decrypted, this also means that the key
> > can be revealed, and other files encrypted with the same key can be
> > decrypted."
> > 
> > Does anyone know if this has improved?
> 
> Hmm... I read that after I replied.  I would've thought they use
> symmetric encryption via gpg or something.  I guess it would create
> dependency which might not work on Windows.
> -- 
> William

I use this[1] for my password file. It does things like disable backup
directories and swap files for the buffer. Just save the files as '.asc'
(ascii-armored) and it will automatically pick them up.

[1] http://www.vim.org/scripts/script.php?script_id=661
-- 
Brandon
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list