Joined: Sep. 2005
||Posted: April 18 2008,19:50
FYI, custom solutions notwithstanding: I do like fooling around with Perl on this - nonetheless I just compiled a C prog called "combina".
This not surprisingly does appear to be faster than the Perl, but I was pleasantly surprised to see not as much faster as I might have expected. Rough "tests" suggest something like 20-50% faster, but that's just trying a few short passwords and it will depend on what password and the order im which the perms are generated, so it might average out to not much difference (or not). XScode is, in fact, interfacing with C libaries via Perl as I understand(?) it so, indirecly, it is a way of using C.
|Code Sample |
|time combina -a -A -n -p 1 -k 5 | ( while read PW; do if 2>/dev/null openssl bf -pass pass:$PW -d -in encryptedfile -out out.txt; then if file -b out.txt | grep -qE '^ASCII.+text'; then echo "Found passphrase $PW"; exit; else continue; fi; fi; done )|
This found the highly challenging (not) password "zz" in 20 sec.
The Perl above took 25 sec over the same name space. There was a greater difference with other passwords.
(I'll post combina.uci to the repo anyway.)