On Sun, Dec 9, 2012 at 8:24 AM, Bram Moolenaar <[email protected]> wrote:
>
> Bruce Leeroy wrote:
>
>> Somehow on exiting Vim I managed to set a password with Encryption On
>> resulting in this:
>> http://i.minus.com/i0EtLG3ZGp0H7.jpg
>>
>> Outside of somehow remember what I hit when exiting the program I am
>> screwed huh?
>

well, if your password is <8 characters, you should be able to break
it in a week or so (or look at amazon or other external sources). 9
characters gets to be a little harder. but you're talking brute force
- this isn't a hash so a rainbow table isn't going to do you any good.
also, if you use a weak schema, that's good (your brute force will be
able to go through more passwords per second).

chances are you're done, but maybe not

> Your best bet is to find a backup file.  If you don't use backup files
> an undelete program might help find the deleted temp file.  But if you
> did further work on the partition it might already be lost.
> There might also be a deleted swap file that you can recover from.
>

so, according to the below link (or what i extract from skimming it)
is that the whole buffer is unencrypted in memory. so, if you haven't
closed the vim session (just the buffer) getting it out of memory
shouldn't be that hard. if you've closed it, dump your ram to a file
and search for words (probably egrep [a-zA-Z0-9]* and go through it
until you find something that looks familiar - better if you know a
contiguous sentence you had). if it's been a day or maybe even a few
hours, good luck with this as well. you've probably got multiple gigs
of ram, so your dump will be multiple gigs - you'll want to limit how
much of the file vim loads at once. oh, and if you've rebooted,
discard this paragraph.

> If you have persistent undo enabled you can get bits of text from the
> undo file.
>

according to this, the undo won't help either (it's encrypted as it should be):
http://vim.wikia.com/wiki/Encryption

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to