|
|||||||||||
|
Re: SHA-1 vs. triple-DES for password encryption?
From: Ben Laurie <ben(at)algroup.co.uk>
Date: Sat Nov 09 2002 - 07:17:56 EST
Craig Minton wrote:
In general you should not use reversible crypto for password storage, so SHA-1 is a better option than triple-DES (it is, of course, possible to make a one-way hash out of triple-DES, so perhaps that's what you meant?). SHA-1 is still considered secure. Reducing the hash to 8 bytes makes the work factor for a successful attack 2^64, which is not generally considered to be fantastically strong, but may still be sufficient for your purposes (especially if passwords are limited to that size :-). A birthday attack, which may well not apply, but it depends on your application, would have a work factor of 2^32, which is definitely weak. Cheers, Ben. -- http://www.apache-ssl.org/ben.html http://www.thebunker.net/ "There is no limit to what a man can do or how far he can go if he doesn't mind who gets the credit." - Robert WoodruffReceived on Sat Nov 9 21:59:12 2002 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:43 EDT |
||||||||||
|
|||||||||||