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
I can't generate the correct UUID v5 using the URL namespace (6ba7b811-9dad-11d1-80b4-00c04fd430c8). In Python:
In [1]: importuuidIn [2]: uuid.uuid5(uuid.NAMESPACE_URL, 'https://id.brasil.io/company/v1/07725215/')
Out[2]: UUID('cea67166-41d3-5c40-8bc9-7c922188f57f')
In the website:
I tried to generate by selecting the namepace URL and also entering the namespace UUID (6ba7b811-9dad-11d1-80b4-00c04fd430c8), both result in the same (wrong) UUID (b53e1b57-1e6a-52cc-8efd-9769b1f08bce).
The problem: the code removes the trailing / in the URL (this issue may be related to #10). Checking using Python:
In [1]: import uuid
In [2]: uuid.uuid5(uuid.NAMESPACE_URL, 'https://id.brasil.io/company/v1/07725215')
Out[2]: UUID('b53e1b57-1e6a-52cc-8efd-9769b1f08bce')
The text was updated successfully, but these errors were encountered:
I can't generate the correct UUID v5 using the URL namespace (
6ba7b811-9dad-11d1-80b4-00c04fd430c8
). In Python:In the website:
![uuidv5-bug](https://user-images.githubusercontent.com/186126/144284960-92ca945a-ee63-41d2-b941-b726830a97b8.png)
I tried to generate by selecting the namepace URL and also entering the namespace UUID (
6ba7b811-9dad-11d1-80b4-00c04fd430c8
), both result in the same (wrong) UUID (b53e1b57-1e6a-52cc-8efd-9769b1f08bce
).The problem: the code removes the trailing
/
in the URL (this issue may be related to #10). Checking using Python:The text was updated successfully, but these errors were encountered: