On Tue, 14 Dec 2010, Cedric Knight wrote:
So a hash is best,
Agreed.
and I'd suggest SHA1 over MD5.
Just out of curiosity, why? An MD5 hash is shorter than an SHA hash (an important consideration when you're making lots of DNS queries of the hash), MD5 is computationally lighter than SHA, and MD5 is robust enough for this purpose, even though artificial collision scenarios exist.
Granted I wouldn't sign a legal document with it any more, but for a private perfect hash of an email address, why not?
-- John Hardin KA7OHZ http://www.impsec.org/~jhardin/ jhar...@impsec.org FALaholic #11174 pgpk -a jhar...@impsec.org key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79 ----------------------------------------------------------------------- Mine eyes have seen the horror of the voting of the horde; They've looted the fromagerie where guv'ment cheese is stored; If war's not won before the break they grow so quickly bored; Their vote counts as much as yours. -- Tam ----------------------------------------------------------------------- Tomorrow: Bill of Rights day