generate uuid from string

Solutions on MaxInterview for generate uuid from string by the best coders in the world

showing results for - "generate uuid from string"
Marta
24 Jun 2020
1 // You can use UUID this way to get always the same UUID for your input String:
2 String aString="JUST_A_TEST_STRING";
3 String result = UUID.nameUUIDFromBytes(aString.getBytes()).toString();