Using parts of a GUID as an identifier

I am developing an ASP.Net MVC application. For one of my actions as a parameter is required id. For example:

public actionresult Detail(Guid id){
    return View();
}

As you can see, I use Guidinstead Int. The problem is more cosmetic. The URL can be very long, for example localhost/Detail/0c157b42-379d-41d5-b9ba-83e9df9985b2.

Is it safe to take only those parts Guidlike localhost/Detail/0c157b42?

+5
source share
6 answers

GUID , , . . . GUID, - SHA-1 ( ) MD5.

+4

, .

SHA-2, .

+3

, GUID, , .

:

0c157b42-379d-41d5-b9ba-83e9df9985b2

0c157b42-379d-41d5-b9ba-83e9df9985b3

, . . GUID , , GUID .

+2

, * GUID, 0c157b42, URL- localhost/Detail/0c157b42, Details. * URL - "Friendly URL" Details.

0

GUID -s HEX Base32 (A-Z, 0-5), 16 .

0

, , - ...

, GUID.

, ID , . - , .

, - GUID.. , . , , , , "

-2

All Articles