Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Per the article, the Baby Step Giant Step algorithm is more efficient than bruteforce for small keys.
 help



Nah, that's not really the case and not what I wanted to imply.

Computationally, "bruteforce" always wins for a larger number of keys, as you just have to generate all keys once and do a binary lookup in a list. (You can, however, also precompute parts of BSGS.) It's more a tradeoff between how large your blocklist is versus how many keys you want to cover.

Right now, I'm doing keys with 8 bit values via "bruteforce" (aka blocklist). I may switch to BSGS and do 16 bit. Going to 32 bit would, as far as my initial tests go, be too slow. At least for badkeys, where I want to be able to scan a large number of keys fast.


Ah, what I meant to say was comparing bruteforce-without-lookup to BSGS-with-precomputation - which I suppose was comparing apples to oranges



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: