|
Re: Cryptology
Ok, I'm giving up for the night because I don't feel like mucking around any more! I tried running a bunch of the words through something I wrote both forwards and backwards and both ways came up with a false answer (either some REALLY odd words or no word at all). If you want to see what I've made, check out http://www.mehh.net/phpstuff/compare.full.phps . You're not going to be able to run it on my server because it'd bog it down for hours with just one hit. If you want to play with it, you're going to have to bog down your own system  Just something like http://localhost/compare.full.php?0=buuconac&1=kgcuuwf will find words that will fit in both those letter patterns. You can add more (append &2=whatever and so on). Maybe I did something wrong, but I'm pretty sure it's working properly. Unless spaces and punctuation were substituted in this, I'm going to assume this is bogus. My dict is ~100,000 words and I'm pretty confident about my code.. so the fact that it returns nothing for me makes me question the validity of the crypt.
(Couple notes about that PHP, it took almost 20 minutes to compare all the 2 and 3 letter words on my G4 1.25ghz. It'd be faster if you were using PHP5 and uncommented that first function. It'd be a lot faster if you rewrote it in C. It totally killed my p133.)
Oh, and sample output is here: http://www.mehh.net/phpstuff/output.txt (from using: http://localhost/compare.full.php?0=...ul&3=fzq fgop)
__________________
I'm a professional web developer. I'm good with PHP, Perl, Java/JSP, some RoR, XML, Javascript (AJAX as well), (x)HTML, CSS, etc.. Validated code is good; fully cross-browser code is better (you comply to your users and the software they use, not the other way around. Sorry!)
Last edited by evulish : 08-03-2005 at 04:41.
|