News for hackers. Stuff that matters.
Re:Crowdsourcing Bruteforcing: Help me win the EngineYard ch... by sil3ntmac on Monday July 20, 2009 @05:21PM (#715237)
Updated to 1ms! I'll work on the HTML stat updates

Edit: fixed and fixed

Re:Crowdsourcing Bruteforcing: Help me win the EngineYard ch... by andreyf on Monday July 20, 2009 @05:37PM (#715270)
Hah! I just generated as many hashes in a minute that I did in the hour I had it running beforehand. Good changes :)
Re:Crowdsourcing Bruteforcing: Help me win the EngineYard ch... by rarestblog on Monday July 20, 2009 @05:36PM (#715267)
You might also consider removing UTF8Encoding from SHA1 implementation, I might be wrong, but I think contest states no encoding should be used - i.e. ASCII only. If that's a care, that's a useless O(N) operation.
Re:Crowdsourcing Bruteforcing: Help me win the EngineYard ch... by sp332 on Tuesday July 21, 2009 @04:38AM (#715948)
UTF8(ASCII) == ASCII

Unless you're using characters > 255, UTF-8 is identical to ASCII.

Re:Crowdsourcing Bruteforcing: Help me win the EngineYard ch... by m_eiman on Tuesday July 21, 2009 @04:50AM (#715955)
Actually it's UTF8(ASCII) == ASCII iff ASCII < 128, since the MSB signifies a multi-byte character.

http://en.wikipedia.org/wiki/UTF-8

Hm, on second thought UTF8(ASCII) is -always- == ASCII, since ASCII is only defined for 0-127, unless you count the extended variants :P

http://en.wikipedia.org/wiki/ASCII

Re:Crowdsourcing Bruteforcing: Help me win the EngineYard ch... by sil3ntmac on Monday July 20, 2009 @05:36PM (#715266)
Yeah, my JS hamming distance implementation is pretty miserable. I'm no bit wizard, but I thikn I can modify the SHA1 function (before it returns the value as a hex string) and XOR the 5 vars with the hex value that they gave us, and then count the set bits. Couldn't get it working last night though so I switched over to this
Re:Crowdsourcing Bruteforcing: Help me win the EngineYard ch... by m_eiman on Tuesday July 21, 2009 @04:39AM (#715950)
You could also make use of the fancy new worker thread stuff in browsers that support it. Should let you skip the timeout altogether.
Re:Crowdsourcing Bruteforcing: Help me win the EngineYard ch... by rarestblog on Monday July 20, 2009 @05:30PM (#715258)
Now we're talking! 7 tabs = 80% cpu usage!

You might also consider lookup tables for Hamming distance (google for "counting bits").