See: https://developer.mozilla.org/en-US/docs/Web/API/Crypto/randomUUID And https://w3c.github.io/webcrypto/ We also need to explore browser support.