📅  最后修改于: 2022-03-11 14:52:09.964000             🧑  作者: Mango
// You can use UUID this way to get always the same UUID for your input String:
String aString="JUST_A_TEST_STRING";
String result = UUID.nameUUIDFromBytes(aString.getBytes()).toString();