tag:blogger.com,1999:blog-26866996.post221943282193001536..comments2023-05-16T03:14:55.163-05:00Comments on JFKBits: A Crack at Cracking the EngineYard's SHA-1 ChallengeUnknownnoreply@blogger.comBlogger1125tag:blogger.com,1999:blog-26866996.post-25148332076186653422009-07-23T09:44:38.367-05:002009-07-23T09:44:38.367-05:00Update: Only after reading other blogs about the c...Update: Only after reading other blogs about the contest did I realize I shouldn't have thought about the SHA-1 hash as a black box. I was typically using phrases longer than a hash block, and for the lifetime of each executable I was asking for the same first 64 bytes to be hashed over and over.<br /><br />I've modified the code to compute the hash of the first block, and each iteration now starts with a memcpy of that initial context and hashes only the second part.<br /><br />Even better is the winning strategy of working only on phrases that fit in a single block.jfkleinhttps://www.blogger.com/profile/10941573678144316048noreply@blogger.com