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

The problem is that as an attacker sending requests to the server, what you control is the API key, not the hash of the API key. To test a specific hash like "c000...0000" you would need to find an input to the hash function that will yield this output. Cryptographic hash functions have a property called preimage resistance that means this is prohibitively difficult (see e.g. https://crypto.stackexchange.com/a/1174).


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

Search: