Re:Ask HN: My bank stores PIN as plain text, should I be wor...
by VStrike on Sunday May 09, 2021 @03:59PM
(#27099186)
There are so few pins that even when hashed it would probably be easy to crack
[ Parent
| on HN ]
Re:Ask HN: My bank stores PIN as plain text, should I be wor...
by MichaelHoste on Sunday May 09, 2021 @04:10PM
(#27099298)
That's something that crossed my mind, a 4-digits PIN is a weak password by definition.
But hashing them with the customer ID, date of birth, or something else, and using bcrypt to slow bruteforce down could already be an improvement.
Re:Ask HN: My bank stores PIN as plain text, should I be wor...
by gus_massa on Sunday May 09, 2021 @05:12PM
(#27099807)
bcrypt already includes salt [1] to prevent the use of rainbow tables. Adding more things is probably not very useful.
Anyway, a 4 digits pin numbers have only 10000 combinations, that can be bruteforced almost instantly.
(On the other hand, sending it by email is not a good idea.)
Re:Ask HN: My bank stores PIN as plain text, should I be wor...
by Hackbraten on Sunday May 09, 2021 @05:14PM
(#27099824)
But there’s no point in doing that. After a leak, you can assume the attacker already knows customer ID and date of birth along with the hypothetically hashed PIN.
Brute-forcing the real PIN would take a few microseconds. So why even bother?