![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
sci.crypt archiveRe: SHA Question
From: Ichinin <gurgel@postmaster.co.uk>
Date: Tue Dec 27 2005 - 23:01:36 CET
First; hashing a password with a hash do not give much more security at
And yes, you should use the output of the hash algorithm as an
(Note: Remember that Sha-1 generate 160 bit hashes and if you are going
What you want to do when you slow down bruteforce attacks is to
For (n = 0; n < 1000; n++)
That slow down bruteforce attacks by a factor of 1000. Since SHA-1 is
Unfortunately - this alone wont slow down dictionary attacks, since
To harden it even further, you can do more things ;
1. Make the password affect how many times the hash function loops
2. Add some salt: feed soso-many random (but STATIC) bytes into the
3. Feed an application specific value too loops (i.e. a keyed PRNG)
4. Use an additional, but static, input (Username, Filelength, File
5. Encrypt the input with an encryption algorithm.
(and on and on)
One thing you should think of is when you're done encrypting, clear out
Good luck.
|