2 ms·
> No practical hashing algorithm, even Scrypt, would be able to securely hash a 4 digit PIN. I was at first skeptical of this, but this seems right. Suppose th
by pcwalton 13y ago
> No practical hashing algorithm, even Scrypt, would be able to securely hash a 4 digit PIN.
I was at first skeptical of this, but this seems right. Suppose that Samsung is willing to make it take 5 seconds for the phone to perform the hash to check the PIN (which is a ridiculously large amount of time). With 10,000 PINs you could still break it in brute force in 14 hours. And that's not even counting the difference between phone CPUs and desktop CPUs, or parallelism; in reality it would probably take an order of magnitude less time.