Rev 16 | Rev 20 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 16 | Rev 18 | ||
---|---|---|---|
1 | <!DOCTYPE html> |
1 | <!DOCTYPE html> |
2 | <html> |
2 | <html> |
3 | 3 | ||
4 | <head> |
4 | <head> |
5 | <meta charset="iso-8859-1"> |
5 | <meta charset="iso-8859-1"> |
6 | <link rel="stylesheet" type="text/css" href="style.css"> |
6 | <link rel="stylesheet" type="text/css" href="style.css"> |
7 | <title>UUID & MAC Utils by Daniel Marschall</title> |
7 | <title>UUID & MAC Utils by Daniel Marschall</title> |
8 | </head> |
8 | </head> |
9 | 9 | ||
10 | <body> |
10 | <body> |
11 | 11 | ||
12 | <h1>UUID & MAC Utils by Daniel Marschall</h1> |
12 | <h1>UUID & MAC Utils by Daniel Marschall</h1> |
13 | 13 | ||
14 | <!-- <p><a href="https://svn.viathinksoft.com/cgi-bin/viewvc.cgi/uuid_mac_utils/">View the source code</a></p> --> |
14 | <!-- <p><a href="https://svn.viathinksoft.com/cgi-bin/viewvc.cgi/uuid_mac_utils/">View the source code</a></p> --> |
15 | <p><a href="https://github.com/danielmarschall/uuid_mac_utils/">View the source code</a></p> |
15 | <p><a href="https://github.com/danielmarschall/uuid_mac_utils/">View the source code</a></p> |
16 | 16 | ||
17 | <h2>Generate an UUID (according to RFC 4122)</h2> |
17 | <h2>Generate an UUID (according to RFC 4122)</h2> |
18 | 18 | ||
19 | <h3>Generate time based (version 1) UUID</h3> |
19 | <h3>Generate time based (version 1) UUID</h3> |
20 | 20 | ||
21 | <form method="GET" action="interprete_uuid.php"> |
21 | <form method="GET" action="interprete_uuid.php"> |
22 | <input type="hidden" name="version" value="1"> |
22 | <input type="hidden" name="version" value="1"> |
23 | <input type="hidden" name="uuid" value="CREATE"> <input type="submit" value="Create an UUID"> |
23 | <input type="hidden" name="uuid" value="CREATE"> <input type="submit" value="Create an UUID"> |
24 | </form> |
24 | </form> |
25 | 25 | ||
26 | <h3>Generate DCE Security (version 2) UUID</h3> |
26 | <h3>Generate DCE Security (version 2) UUID</h3> |
27 | 27 | ||
28 | <p><font color="red">Attention: The uniqueness of these UUIDs is not guaranteed! The use of this UUID version is not recommended!</font></p> |
28 | <p><font color="red">Attention: The uniqueness of these UUIDs is not guaranteed! The use of this UUID version is not recommended!</font></p> |
29 | 29 | ||
30 | <form method="GET" action="interprete_uuid.php"> |
30 | <form method="GET" action="interprete_uuid.php"> |
31 | <input type="hidden" name="version" value="2"> |
31 | <input type="hidden" name="version" value="2"> |
32 | Domain (8 bits): <select name="domain_choose" id="dce_domain_choice" onchange="javascript:dce_domain_choose();"> |
32 | Domain (8 bits): <select name="domain_choose" id="dce_domain_choice" onchange="javascript:dce_domain_choose();"> |
33 | <option value="uid">POSIX UID</option> |
33 | <option value="uid">POSIX UID</option> |
34 | <option value="gid">POSIX GID</option> |
34 | <option value="gid">POSIX GID</option> |
35 | <option value="org">Org</option> |
35 | <option value="org">Org</option> |
36 | <option value="site">Site-defined</option> |
36 | <option value="site">Site-defined</option> |
37 | </select> <input type="text" name="dce_domain" value="" id="dce_domain" style="width:50px"> (decimal notation)<br> |
37 | </select> <input type="text" name="dce_domain" value="" id="dce_domain" style="width:50px"> (decimal notation)<br> |
38 | Value (32 bits): <input type="text" name="dce_id" value="0" id="dce_id" style="width:200px"> (decimal notation)<br><br> |
38 | Value (32 bits): <input type="text" name="dce_id" value="0" id="dce_id" style="width:200px"> (decimal notation)<br><br> |
39 | <input type="hidden" name="uuid" value="CREATE"> <input type="submit" value="Create UUID"> |
39 | <input type="hidden" name="uuid" value="CREATE"> <input type="submit" value="Create UUID"> |
40 | </form> |
40 | </form> |
41 | <script> |
41 | <script> |
42 | function dce_domain_choose() { |
42 | function dce_domain_choose() { |
43 | var ns = document.getElementById('dce_domain_choice').value; |
43 | var ns = document.getElementById('dce_domain_choice').value; |
44 | if (ns == "uid") { |
44 | if (ns == "uid") { |
45 | document.getElementById('dce_domain').value = "0"; |
45 | document.getElementById('dce_domain').value = "0"; |
46 | } |
46 | } |
47 | if (ns == "gid") { |
47 | if (ns == "gid") { |
48 | document.getElementById('dce_domain').value = "1"; |
48 | document.getElementById('dce_domain').value = "1"; |
49 | } |
49 | } |
50 | if (ns == "org") { |
50 | if (ns == "org") { |
51 | document.getElementById('dce_domain').value = "2"; |
51 | document.getElementById('dce_domain').value = "2"; |
52 | } |
52 | } |
53 | if (ns == "site") { |
53 | if (ns == "site") { |
54 | document.getElementById('dce_domain').value = ""; |
54 | document.getElementById('dce_domain').value = ""; |
55 | } |
55 | } |
56 | } |
56 | } |
57 | dce_domain_choose(); |
57 | dce_domain_choose(); |
58 | </script> |
58 | </script> |
59 | 59 | ||
60 | <h3>Generate name based (version 3/5) UUID</h3> |
60 | <h3>Generate name based (version 3/5) UUID</h3> |
61 | 61 | ||
62 | <form method="GET" action="interprete_uuid.php"> |
62 | <form method="GET" action="interprete_uuid.php"> |
63 | Hash: <select name="version"> |
63 | Hash: <select name="version"> |
64 | <option value="3">MD5 (version 3 UUID)</option> |
64 | <option value="3">MD5 (version 3 UUID)</option> |
65 | <option value="5">SHA1 (version 5 UUID)</option> |
65 | <option value="5">SHA1 (version 5 UUID)</option> |
66 | </select><br> |
66 | </select><br> |
67 | Namespace: <select name="namespace_choose" id="nb_nsc" onchange="javascript:nb_ns_choose();"> |
67 | Namespace: <select name="namespace_choose" id="nb_nsc" onchange="javascript:nb_ns_choose();"> |
68 | <option value="dns">DNS</option> |
68 | <option value="dns">DNS</option> |
69 | <option value="url">URL</option> |
69 | <option value="url">URL</option> |
70 | <option value="oid">OID</option> |
70 | <option value="oid">OID</option> |
71 | <option value="x500">X.500 DN</option> |
71 | <option value="x500">X.500 DN</option> |
72 | <option value="oidplus_ns">OIDplus 1.x ns only</option> |
72 | <option value="oidplus_ns">OIDplus 1.x ns only</option> |
73 | <option value="oidplus_ns_val">OIDplus 1.x ns+val</option> |
73 | <option value="oidplus_ns_val">OIDplus 1.x ns+val</option> |
74 | <option value="other">Other</option> |
74 | <option value="other">Other</option> |
75 | </select> <input type="text" name="nb_ns" value="" id="nb_ns" style="width:300px"><br> |
75 | </select> <input type="text" name="nb_ns" value="" id="nb_ns" style="width:300px"><br> |
76 | Value: <input type="text" name="nb_val" value="" id="nb_val" style="width:300px"><br><br> |
76 | Value: <input type="text" name="nb_val" value="" id="nb_val" style="width:300px"><br><br> |
77 | <input type="hidden" name="uuid" value="CREATE"> <input type="submit" value="Create UUID"> |
77 | <input type="hidden" name="uuid" value="CREATE"> <input type="submit" value="Create UUID"> |
78 | </form> |
78 | </form> |
79 | <script> |
79 | <script> |
80 | function nb_ns_choose() { |
80 | function nb_ns_choose() { |
81 | var ns = document.getElementById('nb_nsc').value; |
81 | var ns = document.getElementById('nb_nsc').value; |
82 | if (ns == "dns") { |
82 | if (ns == "dns") { |
83 | document.getElementById('nb_ns').value = "6ba7b810-9dad-11d1-80b4-00c04fd430c8"; |
83 | document.getElementById('nb_ns').value = "6ba7b810-9dad-11d1-80b4-00c04fd430c8"; |
84 | document.getElementById('nb_val').value = "www.example.org"; |
84 | document.getElementById('nb_val').value = "www.example.org"; |
85 | } |
85 | } |
86 | if (ns == "url") { |
86 | if (ns == "url") { |
87 | document.getElementById('nb_ns').value = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; |
87 | document.getElementById('nb_ns').value = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; |
88 | document.getElementById('nb_val').value = "http://www.example.org/"; |
88 | document.getElementById('nb_val').value = "http://www.example.org/"; |
89 | } |
89 | } |
90 | if (ns == "oid") { |
90 | if (ns == "oid") { |
91 | document.getElementById('nb_ns').value = "6ba7b812-9dad-11d1-80b4-00c04fd430c8"; |
91 | document.getElementById('nb_ns').value = "6ba7b812-9dad-11d1-80b4-00c04fd430c8"; |
92 | document.getElementById('nb_val').value = "2.999"; |
92 | document.getElementById('nb_val').value = "2.999"; |
93 | } |
93 | } |
94 | if (ns == "x500") { |
94 | if (ns == "x500") { |
95 | document.getElementById('nb_ns').value = "6ba7b814-9dad-11d1-80b4-00c04fd430c8"; |
95 | document.getElementById('nb_ns').value = "6ba7b814-9dad-11d1-80b4-00c04fd430c8"; |
96 | document.getElementById('nb_val').value = "UID=jsmith,DC=example,DC=net"; |
96 | document.getElementById('nb_val').value = "UID=jsmith,DC=example,DC=net"; |
97 | } |
97 | } |
98 | if (ns == "oidplus_ns") { |
98 | if (ns == "oidplus_ns") { |
99 | document.getElementById('nb_ns').value = "0943e3ce-4b79-11e5-b742-78e3b5fc7f22"; |
99 | document.getElementById('nb_ns').value = "0943e3ce-4b79-11e5-b742-78e3b5fc7f22"; |
100 | document.getElementById('nb_val').value = "ipv4"; |
100 | document.getElementById('nb_val').value = "ipv4"; |
101 | } |
101 | } |
102 | if (ns == "oidplus_ns_val") { |
102 | if (ns == "oidplus_ns_val") { |
103 | document.getElementById('nb_ns').value = "ad1654e6-7e15-11e4-9ef6-78e3b5fc7f22"; |
103 | document.getElementById('nb_ns').value = "ad1654e6-7e15-11e4-9ef6-78e3b5fc7f22"; |
104 | document.getElementById('nb_val').value = "ipv4:8.8.8.8"; |
104 | document.getElementById('nb_val').value = "ipv4:8.8.8.8"; |
105 | } |
105 | } |
106 | if (ns == "other") { |
106 | if (ns == "other") { |
107 | document.getElementById('nb_ns').value = ""; |
107 | document.getElementById('nb_ns').value = ""; |
108 | document.getElementById('nb_val').value = ""; |
108 | document.getElementById('nb_val').value = ""; |
109 | } |
109 | } |
110 | } |
110 | } |
111 | nb_ns_choose(); |
111 | nb_ns_choose(); |
112 | </script> |
112 | </script> |
113 | 113 | ||
114 | <h3>Generate random (version 4) UUID</h3> |
114 | <h3>Generate random (version 4) UUID</h3> |
115 | 115 | ||
116 | <form method="GET" action="interprete_uuid.php"> |
116 | <form method="GET" action="interprete_uuid.php"> |
117 | <input type="hidden" name="version" value="4"> |
117 | <input type="hidden" name="version" value="4"> |
118 | <input type="hidden" name="uuid" value="CREATE"> <input type="submit" value="Create an UUID"> |
118 | <input type="hidden" name="uuid" value="CREATE"> <input type="submit" value="Create an UUID"> |
119 | </form> |
119 | </form> |
120 | 120 | ||
121 | <h2>Interprete an UUID</h2> |
121 | <h2>Interprete an UUID</h2> |
122 | 122 | ||
123 | <p>You can enter an UUID in the following notations:</p> |
123 | <p>You can enter an UUID in the following notations:</p> |
124 | 124 | ||
125 | <ul> |
125 | <ul> |
126 | <li>Classic notation (case insensitive, curly braces optional): <code>9e83839a-5967-11e4-8c1c-78e3b5fc7f22</code></li> |
126 | <li>Classic notation (case insensitive, curly braces optional): <code>9e83839a-5967-11e4-8c1c-78e3b5fc7f22</code></li> |
127 | <li>As OID: <code>2.25.210700883446948645633376489934419689250</code></li> |
127 | <li>As OID: <code>2.25.210700883446948645633376489934419689250</code></li> |
128 | </ul> |
128 | </ul> |
129 | 129 | ||
130 | <p>The script will output:</p> |
130 | <p>The script will output:</p> |
131 | 131 | ||
132 | <ul> |
132 | <ul> |
133 | <li>Notation as UUID and OID</li> |
133 | <li>Notation as UUID and OID</li> |
134 | <li>Version, variant and additional data (date and time, clock seq, node id etc.)</li> |
134 | <li>Version, variant and additional data (date and time, clock seq, node id etc.)</li> |
135 | </ul> |
135 | </ul> |
136 | 136 | ||
137 | <p>Please enter an UUID or UUID OID:</p> |
137 | <p>Please enter an UUID or UUID OID:</p> |
138 | 138 | ||
139 | <form method="GET" action="interprete_uuid.php"> |
139 | <form method="GET" action="interprete_uuid.php"> |
140 | <input type="text" name="uuid" value="" style="width:500px"> <input type="submit" value="Go"> |
140 | <input type="text" name="uuid" value="" style="width:500px"> <input type="submit" value="Go"> |
141 | </form> |
141 | </form> |
142 | 142 | ||
143 | <h2>Interprete a MAC address (EUI-48 or EUI-64)</h2> |
143 | <h2>Interprete a MAC address (MAC/EUI/ELI)</h2> |
144 | 144 | ||
145 | <p>You can enter an UUID in the following notations:</p> |
145 | <p>You can enter an UUID in the following notations:</p> |
146 | 146 | ||
147 | <ul> |
147 | <ul> |
148 | <li><code>AA-BB-CC-DD-EE-FF</code></li> |
148 | <li><code>AA-BB-CC-DD-EE-FF</code></li> |
149 | <li><code>AA:BB:CC:DD:EE:FF</code></li> |
149 | <li><code>AA:BB:CC:DD:EE:FF</code></li> |
150 | <li><code>AABBCC.DDEEFF</code> (case insensitive)</li> |
150 | <li><code>AABBCC.DDEEFF</code> (case insensitive)</li> |
151 | <li><code>AA-BB-CC-DD-EE-FF-11-22</code> (EUI-64)</li> |
151 | <li><code>AA-BB-CC-DD-EE-FF-11-22</code> (EUI-64)</li> |
152 | <li><code>AA:BB:CC:DD:EE:FF-11-22</code> (EUI-64)</li> |
152 | <li><code>AA:BB:CC:DD:EE:FF-11-22</code> (EUI-64)</li> |
153 | <li><code>fe80::1322:33ff:fe44:5566</code> (IPv6 Link Local / EUI-64)</li> |
153 | <li><code>fe80::1322:33ff:fe44:5566</code> (IPv6 Link Local / EUI-64)</li> |
154 | </ul> |
154 | </ul> |
155 | 155 | ||
156 | <p>The script will output:</p> |
156 | <p>The script will output:</p> |
157 | 157 | ||
158 | <ul> |
158 | <ul> |
159 | <li>Information about the I/G and U/L flags.</li> |
159 | <li>Information about the I/G and U/L flags.</li> |
160 | <li>Information about the entry in the IEEE registry, if available.</li> |
160 | <li>Information about the entry in the IEEE registry, if available.</li> |
161 | <li>Information about the registrant, if available.</li> |
161 | <li>Information about the registrant, if available.</li> |
162 | </ul> |
162 | </ul> |
163 | 163 | ||
164 | <p>Please enter a MAC address:</p> |
164 | <p>Please enter a MAC, EUI, ELI, or IPv6-Link-Local address:</p> |
165 | 165 | ||
166 | <form method="GET" action="interprete_mac.php"> |
166 | <form method="GET" action="interprete_mac.php"> |
167 | <input type="text" name="mac" value=""> <input type="submit" value="Go"> |
167 | <input type="text" name="mac" value=""> <input type="submit" value="Go"> |
168 | </form> |
168 | </form> |
169 | 169 | ||
170 | </body> |
170 | </body> |
171 | 171 | ||
172 | </html> |
172 | </html> |
173 | 173 |