On 2012-08-25 17:50, Arne Vajhøj wrote:
> On 8/25/2012 3:37 AM, Anders Eriksson wrote:
>> On 2012-08-25 03:05, Arne Vajhøj wrote:
>>> But you have now known for a couple of days that hashing
>>> of passwords should be done with salt (a different salt for
>>> each user) and your example still do not use salt.
>>
>> Not knowing anything about encryption and such I will ask a silly
>> question!
>
> Questions are never silly.
>
You haven't seen some of my questions yet ;-)
> The use of salt prevents the usage of precomputed tables
> to go from hash to valid password.
>
So the salt it to force anyone wanting to break the password to do so
calculating for each password and not be able to use a Rainbow Table.
I googled a bit about this and also found that there are some crypto
functions that iterates the hashing a number of times, this making it
slower to calculate and therefor harder to break. Not sure about the
correctness of this...
Two "libraries" that was mentioned was:
bcrypt -
http://bcrypt.codeplex.com/
PBKDF2 -
http://msdn.microsoft.com/en-us/magazine/cc163913.aspx
I usually make Desktop application and when I need to have some extra
"security" (permission) I normally use Local Group and make the program
check if the logged in user is a member of a specific group. If not then
the extras is disabled...
// Anders
--
English isn't my first language.
So any error or strangeness is due to the translation.
Please correct my English so that I may become better.