1 |
On 10/14/2013 02:49 PM, Martin Vaeth wrote: |
2 |
> |
3 |
>> Hiding the salt would just be security through obscurity. |
4 |
> |
5 |
> And yet it is stupid if you do not do it and give away a |
6 |
> huge constant factor for no advantage. |
7 |
> |
8 |
|
9 |
(I'll just agree to disagree about the rest.) |
10 |
|
11 |
Keeping the salt secret makes your application more complex. Rather than |
12 |
"SELECT hash, salt FROM users WHERE...", you now have to "SELECT hash |
13 |
FROM users WHERE..." and then pull the salt from somewhere else. (Where? |
14 |
The filesystem? Do you encrypt that? How?) |
15 |
|
16 |
What's stupid is going to all that effort for a 2x improvement when you |
17 |
could twiddle a bit and get a 340282366920938463463374607431768211456x |
18 |
improvement. |