haskell-hvr / uuid

A Haskell library for creating, printing and parsing UUIDs
http://hackage.haskell.org/package/uuid
61 stars 38 forks source link

Provide hashfunction #30

Closed flip111 closed 7 years ago

flip111 commented 7 years ago

Lately there is news that sha1 is not so secure anymore. Perhaps it would be a nice idea that next to the generateNamed function there would be a function where the user can provide his own hash function. generateHashNamed:: UUID -> ([Word8] -> [Word8]) -> [Word8] -> UUID something like that.

EDIT: i just found that this is not a choice of this library but rather UUID https://en.wikipedia.org/wiki/Universally_unique_identifier#Versions_3_and_5_.28namespace_name-based.29