On Mon, Apr 18, 2011 at 12:29:29PM -0700, Mathew Brown wrote: > Hi, > I had several files that were encrypted using the Blowfish algorithm. > All of the files were encrypted using the same passphrase. However, > after exiting Vim a few days ago, when I tried to open them again, all > of them successfully opened except for one file. Is there any way > that I can feed a password list to vim and it can try to open the file > using this list (I would generate the list based on permutations of my > passphrase)? I know quite a bit of the text that was in the file. > Any ideas? Thanks for your help.
# use each passphrase from file keys to open the file in vim and
# re-write it into a new file named for the passphrase (hope your
# passphrase didn't have any spaces in it!)
$ for key in $(cat keys); do vim blowfish.txt --cmd "set key=$key"\
-c ":set key= | saveas $key | q"; done
Now find which files look like ASCII text to the file command:
$ file * | grep "ASCII text"
--
Erik Falor
Registered Linux User #445632 http://counter.li.org
pgpy72VRhGQjM.pgp
Description: PGP signature
