Rev 7 | Rev 16 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
7 | daniel-mar | 1 | <!DOCTYPE html> |
2 | daniel-mar | 2 | <html> |
3 | |||
4 | <head> |
||
5 | <meta charset="iso-8859-1"> |
||
6 | <link rel="stylesheet" type="text/css" href="style.css"> |
||
7 | <title>UUID & MAC Utils by Daniel Marschall</title> |
||
8 | </head> |
||
9 | |||
10 | <body> |
||
11 | |||
12 | <h1>UUID & MAC Utils by Daniel Marschall</h1> |
||
13 | |||
12 | daniel-mar | 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> |
||
2 | daniel-mar | 16 | |
17 | <h2>Generate an UUID (according to RFC 4122)</h2> |
||
18 | |||
19 | <h3>Generate time based (version 1) UUID</h3> |
||
20 | |||
21 | <form method="GET" action="interprete_uuid.php"> |
||
22 | <input type="hidden" name="version" value="1"> |
||
23 | <input type="hidden" name="uuid" value="CREATE"> <input type="submit" value="Create an UUID"> |
||
24 | </form> |
||
25 | |||
26 | <h3>Generate DCE Security (version 2) UUID</h3> |
||
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> |
||
29 | |||
30 | <form method="GET" action="interprete_uuid.php"> |
||
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();"> |
||
33 | <option value="uid">POSIX UID</option> |
||
34 | <option value="gid">POSIX GID</option> |
||
35 | <option value="org">Org</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> |
||
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"> |
||
40 | </form> |
||
41 | <script> |
||
42 | function dce_domain_choose() { |
||
43 | var ns = document.getElementById('dce_domain_choice').value; |
||
44 | if (ns == "uid") { |
||
45 | document.getElementById('dce_domain').value = "0"; |
||
46 | } |
||
47 | if (ns == "gid") { |
||
48 | document.getElementById('dce_domain').value = "1"; |
||
49 | } |
||
50 | if (ns == "org") { |
||
51 | document.getElementById('dce_domain').value = "2"; |
||
52 | } |
||
53 | if (ns == "site") { |
||
54 | document.getElementById('dce_domain').value = ""; |
||
55 | } |
||
56 | } |
||
57 | dce_domain_choose(); |
||
58 | </script> |
||
59 | |||
60 | <h3>Generate name based (version 3/5) UUID</h3> |
||
61 | |||
62 | <form method="GET" action="interprete_uuid.php"> |
||
63 | Hash: <select name="version"> |
||
64 | <option value="3">MD5 (version 3 UUID)</option> |
||
65 | <option value="5">SHA1 (version 5 UUID)</option> |
||
66 | </select><br> |
||
67 | Namespace: <select name="namespace_choose" id="nb_nsc" onchange="javascript:nb_ns_choose();"> |
||
68 | <option value="dns">DNS</option> |
||
69 | <option value="url">URL</option> |
||
70 | <option value="oid">OID</option> |
||
71 | <option value="x500">X.500 DN</option> |
||
72 | <option value="oidplus_ns">OIDplus 1.x ns only</option> |
||
73 | <option value="oidplus_ns_val">OIDplus 1.x ns+val</option> |
||
74 | <option value="other">Other</option> |
||
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> |
||
77 | <input type="hidden" name="uuid" value="CREATE"> <input type="submit" value="Create UUID"> |
||
78 | </form> |
||
79 | <script> |
||
80 | function nb_ns_choose() { |
||
81 | var ns = document.getElementById('nb_nsc').value; |
||
82 | if (ns == "dns") { |
||
83 | document.getElementById('nb_ns').value = "6ba7b810-9dad-11d1-80b4-00c04fd430c8"; |
||
84 | document.getElementById('nb_val').value = "www.example.org"; |
||
85 | } |
||
86 | if (ns == "url") { |
||
87 | document.getElementById('nb_ns').value = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; |
||
88 | document.getElementById('nb_val').value = "http://www.example.org/"; |
||
89 | } |
||
90 | if (ns == "oid") { |
||
91 | document.getElementById('nb_ns').value = "6ba7b812-9dad-11d1-80b4-00c04fd430c8"; |
||
92 | document.getElementById('nb_val').value = "2.999"; |
||
93 | } |
||
94 | if (ns == "x500") { |
||
95 | document.getElementById('nb_ns').value = "6ba7b814-9dad-11d1-80b4-00c04fd430c8"; |
||
96 | document.getElementById('nb_val').value = "UID=jsmith,DC=example,DC=net"; |
||
97 | } |
||
98 | if (ns == "oidplus_ns") { |
||
99 | document.getElementById('nb_ns').value = "0943e3ce-4b79-11e5-b742-78e3b5fc7f22"; |
||
100 | document.getElementById('nb_val').value = "ipv4"; |
||
101 | } |
||
102 | if (ns == "oidplus_ns_val") { |
||
103 | document.getElementById('nb_ns').value = "ad1654e6-7e15-11e4-9ef6-78e3b5fc7f22"; |
||
104 | document.getElementById('nb_val').value = "ipv4:8.8.8.8"; |
||
105 | } |
||
106 | if (ns == "other") { |
||
107 | document.getElementById('nb_ns').value = ""; |
||
108 | document.getElementById('nb_val').value = ""; |
||
109 | } |
||
110 | } |
||
111 | nb_ns_choose(); |
||
112 | </script> |
||
113 | |||
114 | <h3>Generate random (version 4) UUID</h3> |
||
115 | |||
116 | <form method="GET" action="interprete_uuid.php"> |
||
117 | <input type="hidden" name="version" value="4"> |
||
118 | <input type="hidden" name="uuid" value="CREATE"> <input type="submit" value="Create an UUID"> |
||
119 | </form> |
||
120 | |||
121 | <h2>Interprete an UUID</h2> |
||
122 | |||
123 | <p>You can enter an UUID in the following notations:</p> |
||
124 | |||
125 | <ul> |
||
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> |
||
128 | </ul> |
||
129 | |||
130 | <p>The script will output:</p> |
||
131 | |||
132 | <ul> |
||
133 | <li>Notation as UUID and OID</li> |
||
134 | <li>Version, variant and additional data (date and time, clock seq, node id etc.)</li> |
||
135 | </ul> |
||
136 | |||
137 | <p>Please enter an UUID or UUID OID:</p> |
||
138 | |||
139 | <form method="GET" action="interprete_uuid.php"> |
||
140 | <input type="text" name="uuid" value="" style="width:500px"> <input type="submit" value="Go"> |
||
141 | </form> |
||
142 | |||
143 | <h2>Interprete a MAC address</h2> |
||
144 | |||
145 | <p>You can enter an UUID in the following notations:</p> |
||
146 | |||
147 | <ul> |
||
148 | <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> |
||
151 | </ul> |
||
152 | |||
153 | <p>The script will output:</p> |
||
154 | |||
155 | <ul> |
||
156 | <li>Information about the I/G and U/L flags.</li> |
||
157 | <li>Information about the entry in the IEEE registry, if available.</li> |
||
158 | <li>Information about the registrant, if available.</li> |
||
159 | </ul> |
||
160 | |||
161 | <p>Please enter a MAC address:</p> |
||
162 | |||
163 | <form method="GET" action="interprete_mac.php"> |
||
164 | <input type="text" name="mac" value=""> <input type="submit" value="Go"> |
||
165 | </form> |
||
166 | |||
167 | </body> |
||
168 | |||
169 | </html> |