1+ < div class ="container-fluid page p-4 ">
2+ < div class ="row mb-3 ">
3+ < h2 > ID Generator</ h2 >
4+ < p > You can easily generate GUID/UUID or NanoID using this tool.< br />
5+ Just configure the tool and keep generating as many valid IDs as you like!</ p >
6+ </ div >
7+
8+ < div class ="row mb-3 ">
9+ < div class ="col-sm-6 d-flex gap-2 ">
10+ < div class ="form-check ">
11+ < input class ="form-check-input " type ="radio " name ="idTypeRadio " id ="guid " [value] ="true "
12+ [(ngModel)] ="isGuid " (change) ="generate() ">
13+ < label class ="form-check-label " for ="guid "> GUID / UUID</ label >
14+ </ div >
15+ < div class ="form-check ">
16+ < input class ="form-check-input " type ="radio " name ="idTypeRadio " id ="nanoid " [value] ="false "
17+ [(ngModel)] ="isGuid " (change) ="generate() ">
18+ < label class ="form-check-label " for ="nanoid "> NanoID</ label >
19+ </ div >
20+ </ div >
21+ < div class ="col-sm-6 d-flex gap-2 ">
22+ < label class ="form-label d-block me-2 "> Options:</ label >
23+ < div class ="form-check ">
24+ < input class ="form-check-input " type ="checkbox " id ="hyphens " [disabled] ="!isGuid " [(ngModel)] ="hyphen "
25+ (change) ="generate() " />
26+ < label class ="form-check-label " for ="hyphens "> Hyphens</ label >
27+ </ div >
28+ < div class ="form-check ">
29+ < input class ="form-check-input " type ="checkbox " id ="uppercase " [(ngModel)] ="uppercase "
30+ (change) ="generate() " />
31+ < label class ="form-check-label " for ="uppercase "> Uppercase</ label >
32+ </ div >
33+ </ div >
34+ </ div >
35+
36+ < div class ="row mb-3 ">
37+ < div class ="col-sm-4 ">
38+ < label for ="idCount " class ="form-label "> ID Count</ label >
39+ < input type ="number " class ="form-control " id ="idCount " [(ngModel)] ="count " (change) ="generate() " />
40+ </ div >
41+ < div class ="col-sm-4 ">
42+ < label for ="prependText " class ="form-label "> Prepend Text</ label >
43+ < input type ="text " class ="form-control " id ="prependText " [(ngModel)] ="prepend " (change) ="generate() " />
44+ </ div >
45+ < div class ="col-sm-4 ">
46+ < label for ="appendText " class ="form-label "> Append Text</ label >
47+ < input type ="text " class ="form-control " id ="appendText " [(ngModel)] ="append " (change) ="generate() " />
48+ </ div >
49+ </ div >
50+
51+ < div class ="row mb-3 ">
52+ < div class ="col d-flex gap-2 ">
53+ < label class ="form-label d-block me-2 "> Encoding:</ label >
54+ < div class ="form-check ">
55+ < input class ="form-check-input " type ="checkbox " id ="base64 " [(ngModel)] ="base64 "
56+ (change) ="generate() " />
57+ < label class ="form-check-label " for ="base64 "> Base64</ label >
58+ </ div >
59+ < div class ="form-check ">
60+ < input class ="form-check-input " type ="checkbox " id ="rfc7515 " [disabled] ="!base64 " [(ngModel)] ="rfc7515 " (change) ="generate() " />
61+ < label class ="form-check-label " for ="rfc7515 "> RFC7515</ label >
62+ </ div >
63+ < div class ="form-check ">
64+ < input class ="form-check-input " type ="checkbox " id ="urlEncode " [disabled] ="!base64 "
65+ [(ngModel)] ="urlEncode " (change) ="generate() " />
66+ < label class ="form-check-label " for ="urlEncode "> URL Encode</ label >
67+ </ div >
68+ </ div >
69+ </ div >
70+
71+
72+ < div class ="row ">
73+ < div class ="col-12 ">
74+ < label for ="csharp-code " class ="form-label "> Generated IDs:</ label >
75+ < div class ="code-border " [@valueChangeAnim] ="status ">
76+ < code-area innerStyle ="min-height:300px; " [(code)] ="idsCode " language ="typescript " readonly ="true " />
77+ </ div >
78+ < br />
79+ </ div >
80+ </ div >
81+
82+ < div class ="row ">
83+ < div class ="col-12 d-flex justify-content-center ">
84+ < button class ="btn btn-success " (click) ="generate() "> Generate < i class ="bi bi-stars "> </ i > </ button >
85+ </ div >
86+ </ div >
87+
88+ < br />
89+
90+ < div class ="row ">
91+ < div class ="col-12 ">
92+ < p > < strong > GUID & UUID</ strong > < br > GUID (Globally Unique Identifier) and UUID (Universally Unique
93+ Identifier) are 128-bit unique IDs widely used in databases, distributed systems, and APIs. These
94+ alphanumeric strings (like < code > 550e8400-e29b-41d4-a716-446655440000</ code > ) ensure uniqueness across
95+ systems. UUIDs follow the < strong > RFC 4122</ strong > standard and come in versions like < strong > v1
96+ (time-based)</ strong > or < strong > v4 (random)</ strong > , making them perfect for decentralized setups
97+ where collisions must be avoided.</ p >
98+ < p > < strong > NanoID</ strong > < br > NanoID is the sleek, modern alternative to UUIDs. It’s
99+ < strong > faster</ strong > , < strong > customizable</ strong > , and < strong > shorter</ strong > —ideal for use cases
100+ like short URLs, user sessions, or SPAs. With adjustable lengths and character sets, NanoID gives
101+ developers full control while staying efficient and secure. Need a compact, unique ID that’s easy to
102+ work with? NanoID has you covered.</ p >
103+ </ div >
104+ </ div >
105+ </ div >
0 commit comments