You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two different input names can result in the same v5 UUID - e.g. 人 & 人 will both be encoded to f7cd5579-8db4-5043-bd83-98565a62a4f4
This is caused by the v5 not working properly with UTF8 characters.
Dart
import "package:uuid/uuid.dart";
final String key = const Uuid().v5(Uuid.NAMESPACE_X500, "人");
print(key);
vjamrich
changed the title
V5 inconsistencies when using UTF8/Unicode characters
Duplicate UUIDs - V5 inconsistencies when using UTF8/Unicode characters
Mar 29, 2024
The fix is now part of the v4.4.0 release, sorry for the delay, there were other problems I had to fix due other problems fixed as part of the release.
Two different input names can result in the same v5 UUID - e.g.
人
&人
will both be encoded tof7cd5579-8db4-5043-bd83-98565a62a4f4
This is caused by the v5 not working properly with UTF8 characters.
Dart
Output:
f7cd5579-8db4-5043-bd83-98565a62a4f4
Python
Output:
3af28677-8030-59ef-81a6-051ddf226fad
Expected Output
The output String should be consistent.
The text was updated successfully, but these errors were encountered: