Re: Importance of salt

From: Dominick Baier [DevelopMentor] (dbaier_at_pleasepleasenospamdevelop.com)
Date: 09/16/05


Date: Fri, 16 Sep 2005 01:36:22 -0700

Hello vla10d@gmail.com,

yes - again that slows him down - and give the number of computations necessary
for these kind of attacks, this is an important factor

in general, try to keep the amount of data encrypted with a long term secret
as small as possible.

so what would be a practical solution

0) enforce password complexity (this is the most important step)
1) generate a key from the password, use salting and hashing and iterations
if you like
2) generate a random key
3) encrypt using random key
4) encrypt key using key from password

you should get a copy of "Schneier, Ferguson: Practical Cryptography"
 
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

> Precomputed tables... now this really sheds some light. :) I didn't
> think about the hashed dictionaries. Okay, I see now how any kind of
> salting helps against that kind of dictionaries. On the other hand, if
> the attacker uses plain dictionaries and computes the hash at runtime
> (with my salt), then I can use high number of iterations to slow him
> down a bit. Thanks for the explanation... :)
>
> As for your suggestions... this means that the attacker will first
> have to try to decrypt a key by lets say dictionary attack, and for
> each attempt (each retrieved key) he has to try to decrypt the entire
> message with that key. I'm not sure that this is dramatically better
> than the original situation where the attacker tries to generate a key
> and use that key to decrypt the message. The only advantage that I see
> is that in your case, he will spend a bit more time, since he has to
> decypt twice. At least thats my understanding, please correct me if
> i'm wrong... :)
>
> V.
>



Relevant Pages

  • RE: Password strength
    ... Then you increase your password to 2 letters - ... an all lowercase password like "thisisalongpassword" would be 26^19 = ... attacker already knows that you only use lower case letters. ... dictionaries freely available for download. ...
    (Security-Basics)
  • Re: Importance of salt
    ... salting helps against that kind of dictionaries. ... the attacker uses plain dictionaries and computes the hash at runtime ... to try to decrypt a key by lets say dictionary attack, ...
    (microsoft.public.dotnet.security)
  • Re: Strength of RSA with known plain-text.
    ... >]an attacker has, ... > That is also true of secret key systems. ... a secret message that an attacker can never decrypt. ...
    (sci.crypt)
  • Re: How regularly is the GnuPG source code examined?
    ... >altered in such a way that the attacker, intercepting only the output from ... could gain enough information to decrypt it easily. ...
    (sci.crypt)
  • Re: How regularly is the GnuPG source code examined?
    ... >>altered in such a way that the attacker, intercepting only the output from ... could gain enough information to decrypt it easily. ... the entropy of the generator was far smaller than ...
    (sci.crypt)