How to generate a GUID with a custom alphabet, that behaves similar to an MD5 hash (in JavaScript)?
问题 I am wondering how to generate a GUID given an input string, such that the same input string results in the same GUID (sort of like an MD5 hash). The problem with MD5 hashes is they just guarantee low collision rate, rather than uniqueness. Instead I would like something like this: guid('v1.0.0') == 1231231231123123123112312312311231231231 guid('v1.0.1') == 6154716581615471658161547165816154716581 guid('v1.0.2') == 1883939319188393931918839393191883939319 How would you go about implementing