tl;dr: Do we have tools to support UUID v5 in Chrome?
Hi all,
I'm working on a feature where it would be useful to reproduce a UUID from a unique, non-UUID string. I was thinking this would be a good case for UUID v5, but I found a few limitations when I started to look into it. Notably, the current base::Uuid implementation doesn't keep a byte array, but the formatted lowercase string. Do we have any existing tools to convert base::Uuid to its bytes or some other hidden implementation that supports v5? It looks like we have all the pieces to make this possible in //base (sha1, hex/byte conversion, etc.) but I don't want to reinvent the wheel if I don't have to. My plan was to try this out in our feature code, but if we're broadly looking for a more flexible base implementation, I'd be happy to make the changes there as well.
Any insight is appreciated, thanks!
Matt