4 ms·
Why not use GUIDs (http://en.wikipedia.org/wiki/Globally_Unique_Identifier http://en.wikipedia.org/wiki/Globally_Unique_Identifier)? They're actually intended t
by apgwoz 19y ago
Why not use GUIDs (http://en.wikipedia.org/wiki/Globally_Unique_Identifier http://en.wikipedia.org/wiki/Globally_Unique_Identifier)? They're actually intended to be used as ids, while crytographic hashes are designed for different purposes.
- siculars 19y agoyou have to generate a guid for every piece of data you want to store but the guid doesnt have any real connection to that data other than you linking it. the hash is always reproduceable given the same inputs.
- apgwoz 19y agoYes, the hash is always reproducible given the same inputs, but you never specified this as a requirement in your question. Only that you want a unique identifier. I don't know for what purpose you need these identifiers, but I have to wonder why you want to use an identifier that is going to change when the data changes. If it's going to be thrown in a relational database, this sounds like a nightmare.