I am building a site in ASP.NET and want to have a user profile that can be accessed through the URL with the user id at the end. A unique identifier is obviously a bad choice as it is long and (correct me if I am wrong) not very URL friendly.
I was interested to find out if I created a unique identifier on the ASP page and then hashed it using CRC (or something similar) if it is still unique (or even unique) as soon as the GUID.
For example:
GUID 6f1a7841-190b-4c7a-9f23-98709b6f8848 is equal to CRC E6DC2D44.
thanks
CRC GUID , . - , 4 .
, GUID, , CRC.
, . , URL- , ( ), . , . .
(), , . .
, ? ( !) , , URL. ASP.NET( " " ). - , () ?
, , . 32 8 , 75% .
, . 16 ( 16), (, 64), .
GUID URL- HTTP. , Guid .
var gid = Guid.NewGuid().ToString("N");
GUID .
GUID , , , , -. , . - , CRC, , (, , , ), .
URL-.
CRC UUID/GUID ID, .
UUID/GUID - , .
, URL- ?
URL- UUID/GUID - , http.
( , )?
GUID, , , ID ( ); .
If they are identified by a unique integer value, why not use this to invoke a user profile?
You can reduce the GUID to 20 printable ASCII characters, and it is still unique and will not lose any information.
Take a look at this Jeff Atwood blog post:Equipping our ASCII Armor
Source: https://habr.com/ru/post/1713575/More articles:Fiddler замедляет мои браузеры - performanceВнедрение сравнения с использованием общего интерфейса в С++ - c++Signing an assembly with Nant - .netHow to get FPS games (with OpenGL) like 800 FPS - openglAnimation from one style to another - triggersHow can I directly output from the program to the console and the log file? - redirecthttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1713577/visual-studio-2008-warning-about-changes-to-designer-generated-code&usg=ALkJrhjHY0S2YovIlDFzDl59_ctxlGylIwEasy HTML Parser to convert to rich text? - c ++How to properly configure netbeans 6.7 and c ++ on windows? - c ++Загрузка текстовых файлов с помощью Python и ftplib.FTP из z/os - pythonAll Articles