I just came accross this blog which uses ShortGuid to create registration validation tokens.
When i tried to open the link which said A shorter and URL friendly Guid it seems that the link redirects to some other link. It opens some other language site.
But I have few questions, How can a shorter Guid be user friendly? And when should I use it?
They're 22 characters long and are base64 encoded. simple and very helpful, thanks!
The valid GUID (Globally Unique Identifier) must specify the following conditions: It should be a 128-bit number. It should be 36 characters (32 hexadecimal characters and 4 hyphens) long.
A GUID is a 128-bit integer (16 bytes) that can be used across all computers and networks wherever a unique identifier is required.
Individuals and organizations can create GUIDs using a free GUID generator that is available online. An online generator constructs a unique GUID according to RFC 4122. When creating a GUID, users should note the timestamp, clock sequence and the node ID -- such as a Media Access Control (MAC) address.
There is a copy/past benefit as well. If i understand correctly, it is not about nice URLs, but about validation tokens. A lot of people copy/pase codes by double clicking, and then the Sguid (ShortGuid) is indeed more user friendly. Try it:
Xy0MVKupFES9NpmZ9TiHcw
540c2d5f-a9ab-4414-bd36-9999f5388773
How can a shorter Guid be user friendly?
If your users type in URLs by hand instead of clicking links, so not very likely.
And when should I use it?
All characters in a GUID (A-F
, 0-9
, -
) are URL-safe, so 'safety' isn't really an argument.
You may want to consider it for aesthetical reasons, or for ease of copy-pasting the URL.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With