uuid
uuid copied to clipboard
Built-in hasher for JavaScript for UUID v3 and v5
There are platform-specific hashers that enable uuid3Of and uuid5Of functions, but there isn't one for JS. I'm not sure if there is a recommended JS dependency to use for these, or if there is some JS API I don't know about that could provide these.
Non-JS expert but it seems that node package uuid has no dependencies. Perhaps its implementation of v3 and v5 via common v35 function might give an inspiration?
This should be possible with web crypto APIs now