hash - Is there an issue with putting a longer input string to a hashing algorithm than the algorithm outputs? -


currently i'm designing hashing system user emails, happens if user email longer hash output. use sha1 sha256 or sha512 if makes difference based on algorithm... seems @ point algorithm wouldn't able keep on producing unique outputs.

hash values have fixed length 13 (des) 86 (sha2) characters. it's normal if give longer input. think of "cross sum" can arbitrary long numbers well.

regarding uniqueness, using standard crypt(3) function sha-512 , characters in set a-za-z./ have 54 different characters , 86 character long string 54^86 different values. that's lot :-)

(don't use 13 char long des crypt though, that's bruteforceable modern hardware , use "salt" values same input string gives different hash values , can't use "rainbow table" attack).


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -