Bénoni MARTIN wrote:
> Humm...in my crypto courses, I learnt that encrypting several times a
> password does not enhance the security level of it. Is it the same
> for a hash? I don't know...Somene has a clue? And I think that
> hashing 50 times a password would slow down the hacker...wut us as
> well! :)
Because of the inherent weaknesses of non-perfect hash functions
(partial message collisions and length extensions) you are well advised
to never use a hash function once. Instead, using h_dbl(m) := h(h(m)||m)
where h(m) is the hash function with plaintext m is a better option as
it is believed it solves both of the weaknesses.
Of course, this precludes you from being able to hash a datastream on
the fly, so if that's important, you have to find a better way to
protect yourself.
Cheers,
Ivan.
Received on Jul 02 2004