A way to create generic name-based UUIDs in Java and PHP

Sof team,

I have a requirement to create a UUID for a name for my project. The trap is that FE uses PHP to generate string-based identifiers, and BE uses Java to generate these UUIDs from the same string.

Is there any package in PHP and Java that generate the same string based UUID. I tried to generate a UUID in Java using the UUID.nameUUIDFromBytes(name.getBytes()).toString() method from java.util.UUID . In the case of PHP, I find a module that generates the same UUID

0
java php uuid
source share
1 answer

Java UUID.nameUUIDFromBytes returns Option 3 UUID , Ben Ramsey Ramsey \ Uuid The PHP library can generate them.

+3
source share

All Articles