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