Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How are shorter GUID user friendly?

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?

like image 768
Cybercop Avatar asked Mar 06 '14 15:03

Cybercop


People also ask

How long is short GUID?

They're 22 characters long and are base64 encoded. simple and very helpful, thanks!

How many characters are GUIDs?

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.

How long is a GUID C#?

A GUID is a 128-bit integer (16 bytes) that can be used across all computers and networks wherever a unique identifier is required.

How do I make a global unique identifier?

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.


2 Answers

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

like image 87
MarkO Avatar answered Sep 19 '22 19:09

MarkO


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.

like image 42
CodeCaster Avatar answered Sep 22 '22 19:09

CodeCaster