While it may not work for all use cases, there is a Postgres PL/pgSQL function that is easy to install. It is being kept here for now: https://gist.github.com/kjmph/5bd772b2c2df145aa645b837da7eca...
I created a PL/pgSQL function for this purpose. As Starlevel001 mentioned, the UUID format will accept opaque bytes. Perhaps you could find this useful? https://gist.github.com/kjmph/5bd772b2c2df145aa645b837da7eca...
While it may not work for all use cases, there is a Postgres PL/pgSQL function that is easy to install. It is being kept here for now: https://gist.github.com/kjmph/5bd772b2c2df145aa645b837da7eca...
I created a PL/pgSQL function for this purpose. As Starlevel001 mentioned, the UUID format will accept opaque bytes. Perhaps you could find this useful? https://gist.github.com/kjmph/5bd772b2c2df145aa645b837da7eca...