blob: d9b5e037e361f4d49341e22f178d13f192994a3e [file] [log] [blame]
Meki Cherkaoui8f173612012-06-06 01:05:40 -07001<?xml version = "1.0" encoding="utf-8" ?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3"DTD/xhtml1-strict.dtd">
4<html xmlns = "http://www.w3.org/1999/xhtml">
5
6<head>
7 <title>NDN Decode Interest + Face Instance</title>
8
Jeff Thompson7ed5ef52012-08-26 11:28:48 -07009 <script type="text/javascript" src="../java_socket_bridge.js"></script>
Meki Cherkaoui8f173612012-06-06 01:05:40 -070010
Jeff Thompsonc3164722012-09-30 18:35:02 -070011 <script type="text/javascript" src="../util/CCNProtocolDTags.js"></script>
Meki Cherkaoui8f173612012-06-06 01:05:40 -070012
Jeff Thompsonc3164722012-09-30 18:35:02 -070013 <script type="text/javascript" src="../util/CCNTime.js"></script>
Meki Cherkaoui8f173612012-06-06 01:05:40 -070014
Jeff Thompsonf3bd3592012-09-29 23:25:30 -070015 <script type="text/javascript" src="../Name.js"></script>
Meki Cherkaoui8f173612012-06-06 01:05:40 -070016
Jeff Thompson7ed5ef52012-08-26 11:28:48 -070017 <script type="text/javascript" src="../ContentObject.js"></script>
Meki Cherkaoui8f173612012-06-06 01:05:40 -070018
Jeff Thompsonc3164722012-09-30 18:35:02 -070019 <script type="text/javascript" src="../encoding/DateFormat.js"></script>
Meki Cherkaoui8f173612012-06-06 01:05:40 -070020
Jeff Thompson7ed5ef52012-08-26 11:28:48 -070021 <script type="text/javascript" src="../Interest.js"></script>
Meki Cherkaoui8f173612012-06-06 01:05:40 -070022
Jeff Thompsonc3164722012-09-30 18:35:02 -070023 <script type="text/javascript" src="../Key.js"></script>
Meki Cherkaoui8f173612012-06-06 01:05:40 -070024
Jeff Thompson7ed5ef52012-08-26 11:28:48 -070025 <script type="text/javascript" src="../PublisherID.js"></script>
Meki Cherkaoui8f173612012-06-06 01:05:40 -070026
Jeff Thompson7ed5ef52012-08-26 11:28:48 -070027 <script type="text/javascript" src="../PublisherPublicKeyDigest.js"></script>
Meki Cherkaoui8f173612012-06-06 01:05:40 -070028
Jeff Thompson7ed5ef52012-08-26 11:28:48 -070029 <script type="text/javascript" src="../FaceInstance.js"></script>
Meki Cherkaoui8f173612012-06-06 01:05:40 -070030
Jeff Thompson7ed5ef52012-08-26 11:28:48 -070031 <script type="text/javascript" src="../ForwardingEntry.js"></script>
Meki Cherkaoui8f173612012-06-06 01:05:40 -070032
Jeff Thompson7ed5ef52012-08-26 11:28:48 -070033 <script type="text/javascript" src="../encoding/BinaryXMLEncoder.js"></script>
Meki Cherkaoui8f173612012-06-06 01:05:40 -070034
Jeff Thompson7ed5ef52012-08-26 11:28:48 -070035 <script type="text/javascript" src="../encoding/BinaryXMLDecoder.js"></script>
Meki Cherkaoui8f173612012-06-06 01:05:40 -070036
Jeff Thompson7ed5ef52012-08-26 11:28:48 -070037 <script type="text/javascript" src="../encoding/DataUtils.js"></script>
Meki Cherkaoui8f173612012-06-06 01:05:40 -070038
Jeff Thompson7ed5ef52012-08-26 11:28:48 -070039 <script type="text/javascript" src="../encoding/EncodingUtils.js"></script>
Meki Cherkaoui8f173612012-06-06 01:05:40 -070040
41
Jeff Thompson7ed5ef52012-08-26 11:28:48 -070042 <script language="JavaScript" type="text/javascript" src="../security/KeyManager.js"></script>
Meki Cherkaoui8f173612012-06-06 01:05:40 -070043
Jeff Thompson7ed5ef52012-08-26 11:28:48 -070044 <script language="JavaScript" type="text/javascript" src="../securityLib/jsbn.js"></script>
45 <script language="JavaScript" type="text/javascript" src="../securityLib/jsbn2.js"></script>
46 <script language="JavaScript" type="text/javascript" src="../securityLib/rsa.js"></script>
47 <script language="JavaScript" type="text/javascript" src="../securityLib/rsa2.js"></script>
Meki Cherkaoui8f173612012-06-06 01:05:40 -070048
Jeff Thompson7ed5ef52012-08-26 11:28:48 -070049 <script language="JavaScript" type="text/javascript" src="../securityLib/sha1.js"></script>
50 <script language="JavaScript" type="text/javascript" src="../securityLib/sha256.js"></script>
51 <script language="JavaScript" type="text/javascript" src="../securityLib/sha512.js"></script>
52 <script language="JavaScript" type="text/javascript" src="../securityLib/md5.js"></script>
53 <script language="JavaScript" type="text/javascript" src="../securityLib/ripemd160.js"></script>
54 <script language="JavaScript" type="text/javascript" src="../securityLib/base64.js"></script>
Meki Cherkaoui8f173612012-06-06 01:05:40 -070055
Jeff Thompson7ed5ef52012-08-26 11:28:48 -070056 <script language="JavaScript" type="text/javascript" src="../securityLib/rsapem-1.1.js"></script>
57 <script language="JavaScript" type="text/javascript" src="../securityLib/rsasign-1.2.js"></script>
58 <script language="JavaScript" type="text/javascript" src="../securityLib/asn1hex-1.1.js"></script>
59 <script language="JavaScript" type="text/javascript" src="../securityLib/x509-1.1.js"></script>
Meki Cherkaoui8f173612012-06-06 01:05:40 -070060
61 <script type="text/javascript">
62
63
64
65 function decode(){
Meki Cherkaoui8f173612012-06-06 01:05:40 -070066
67 var input = document.getElementById('result').innerHTML;
68
69
70 var interest = decodeHexInterest(input);
71
72 if(LOG>3)console.log('INTEREST DECODED');
73 if(LOG>3)console.log(interest);
74
75 ///////////////////////////////////////
76
77 var output ="";
78
79
Jeff Thompsone85ff1d2012-09-29 21:21:57 -070080 if(interest.name!=null && interest.name.components!=null){
Meki Cherkaoui8f173612012-06-06 01:05:40 -070081 output+= "NAME: ";
82
Jeff Thompsone85ff1d2012-09-29 21:21:57 -070083 for(var i=0;i<interest.name.components.length;i++){
84 output+= "/"+ DataUtils.toString(interest.name.components[i]);
Meki Cherkaoui8f173612012-06-06 01:05:40 -070085 }
86 output+= "<br />";
87 output+= "<br />";
88 }
89
Jeff Thompson86aea882012-09-29 17:32:48 -070090 if(interest.faceInstance!=null ){
Meki Cherkaoui8f173612012-06-06 01:05:40 -070091 output+= "FaceInstance: ";
92
Jeff Thompson86aea882012-09-29 17:32:48 -070093 output+= interest.faceInstance;
Meki Cherkaoui8f173612012-06-06 01:05:40 -070094
95 output+= "<br />";
96 output+= "<br />";
97 }
98
Jeff Thompson86aea882012-09-29 17:32:48 -070099 if(interest.exclude!=null ){
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700100 output+= "Exclude: ";
101
Jeff Thompson86aea882012-09-29 17:32:48 -0700102 output+= interest.exclude;
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700103
104 output+= "<br />";
105 output+= "<br />";
106 }
107
Jeff Thompson86aea882012-09-29 17:32:48 -0700108 if(interest.childSelector!=null ){
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700109 output+= "ChildSelector: ";
110
Jeff Thompson86aea882012-09-29 17:32:48 -0700111 output+= interest.childSelector;
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700112
113 output+= "<br />";
114 output+= "<br />";
115 }
116
Jeff Thompson86aea882012-09-29 17:32:48 -0700117 if(interest.answerOriginKind!=null ){
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700118 output+= "AnswerOriginKind: ";
119
Jeff Thompson86aea882012-09-29 17:32:48 -0700120 output+= interest.answerOriginKind;
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700121
122 output+= "<br />";
123 output+= "<br />";
124 }
125
Jeff Thompson86aea882012-09-29 17:32:48 -0700126 if(interest.interestLifetime!=null ){
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700127 output+= "InterestLifetime: ";
128
Jeff Thompson86aea882012-09-29 17:32:48 -0700129 output+= interest.interestLifetime;
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700130
131 output+= "<br />";
132 output+= "<br />";
133 }
134
Jeff Thompson86aea882012-09-29 17:32:48 -0700135 if(interest.nonce!=null ){
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700136 output+= "Nonce: ";
137
Jeff Thompson86aea882012-09-29 17:32:48 -0700138 output+= interest.nonce;
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700139
140 output+= "<br />";
141 output+= "<br />";
142 }
143
144
Jeff Thompson86aea882012-09-29 17:32:48 -0700145 if(interest.scope!=null ){
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700146 output+= "SCOPE: ";
147
Jeff Thompson86aea882012-09-29 17:32:48 -0700148 output+= interest.scope;
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700149
150 output+= "<br />";
151 output+= "<br />";
152 }
153
Jeff Thompson86aea882012-09-29 17:32:48 -0700154 if(interest.publisherPublicKeyDigest!=null ){
155 output+= "PUBLISHER PUBLIC KEY DIGEST: ";
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700156
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700157 output+= interest.publisherPublicKeyDigest.publisherPublicKeyDigest;
Jeff Thompson86aea882012-09-29 17:32:48 -0700158
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700159 output+= "<br />";
160 output+= "<br />";
161 }
162
Jeff Thompson86aea882012-09-29 17:32:48 -0700163 if(interest.maxSuffixComponents!=null ){
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700164 output+= "MaxSuffixComponents : ";
165
Jeff Thompson86aea882012-09-29 17:32:48 -0700166 output+= interest.maxSuffixComponents;
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700167
168 output+= "<br />";
169 output+= "<br />";
170 }
171
Jeff Thompson86aea882012-09-29 17:32:48 -0700172 if(interest.minSuffixComponents!=null ){
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700173 output+= "MinSuffixComponents : ";
174
Jeff Thompson86aea882012-09-29 17:32:48 -0700175 output+= interest.minSuffixComponents;
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700176
177 output+= "<br />";
178 output+= "<br />";
179 }
180
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700181 if(interest.name.components[3] !=null){
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700182
183
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700184 var input = DataUtils.toHex(interest.name.components[3]) ;
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700185
186 var contentObject = decodeHexContentObject(input);
187
Jeff Thompson86aea882012-09-29 17:32:48 -0700188 if(contentObject.content!=null ){
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700189 output+= "Content of content Object: ";
190
Jeff Thompson86aea882012-09-29 17:32:48 -0700191 output+= DataUtils.toHex(contentObject.content);
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700192
193 output+= "<br />";
194 output+= "<br />";
195 }
196
197
Jeff Thompson86aea882012-09-29 17:32:48 -0700198 var content = DataUtils.toHex(contentObject.content);
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700199
200 var co = contentObject;
201
202
203 ////////////////////////////////////////
204
205
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700206 if(co.name!=null && co.name.components!=null){
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700207 output+= "NAME: ";
208
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700209 for(var i=0;i<co.name.components.length;i++){
210 output+= "/"+ DataUtils.toString(co.name.components[i]);
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700211 }
212 output+= "<br />";
213 output+= "<br />";
214 }
215
Jeff Thompson86aea882012-09-29 17:32:48 -0700216 if(co.content !=null){
217 output += "CONTENT(ASCII): "+ DataUtils.toString(co.content);
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700218
219 output+= "<br />";
220 output+= "<br />";
221 }
Jeff Thompson86aea882012-09-29 17:32:48 -0700222 if(co.content !=null){
223 output += "CONTENT(hex): "+ DataUtils.toHex(co.content);
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700224
225 output+= "<br />";
226 output+= "<br />";
227 }
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700228 if(co.signature !=null && co.signature.signature!=null){
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700229
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700230 output += "SIGNATURE(hex): "+ DataUtils.toHex(co.signature.signature);
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700231
232 output+= "<br />";
233 output+= "<br />";
234 }
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700235 if(co.signedInfo !=null && co.signedInfo.publisher!=null && co.signedInfo.publisher.publisherPublicKeyDigest!=null){
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700236
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700237 output += "Publisher Public Key Digest(hex): "+ DataUtils.toHex(co.signedInfo.publisher.publisherPublicKeyDigest);
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700238
239 output+= "<br />";
240 output+= "<br />";
241 }
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700242 if(co.signedInfo !=null && co.signedInfo.timestamp!=null){
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700243 var d = new Date();
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700244 d.setTime( co.signedInfo.timestamp.msec );
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700245
246 var bytes = [217, 185, 12, 225, 217, 185, 12, 225];
247
248 output += "TimeStamp: "+d;
249 output+= "<br />";
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700250 output += "TimeStamp(number): "+ co.signedInfo.timestamp.msec;
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700251
252
253 output+= "<br />";
254 }
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700255 if(co.signedInfo !=null && co.signedInfo.type!=null){
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700256
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700257 output += "Type: "+co.signedInfo.type;
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700258 output+= "<br />";
259 output+= "<br />";
260 }
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700261 if(co.signedInfo !=null && co.signedInfo.locator!=null){
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700262
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700263 output += "Locator: "+co.signedInfo.locator.type;
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700264 output+= "<br />";
265 output+= "<br />";
266 }
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700267 if(co.signedInfo !=null && co.signedInfo.freshnessSeconds!=null){
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700268
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700269 output += "FreshnessSeconds: "+co.signedInfo.freshnessSeconds;
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700270 output+= "<br />";
271 output+= "<br />";
272 }
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700273 if(co.signedInfo !=null && co.signedInfo.finalBlockID!=null){
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700274
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700275 output += "FinalBlockID: "+co.signedInfo.finalBlockID;
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700276 output+= "<br />";
277 output+= "<br />";
278 }
279
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700280 if(co.signedInfo!=null && co.signedInfo.locator!=null && co.signedInfo.locator.publicKey!=null){
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700281
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700282 var publickey = rstr2b64(DataUtils.toString(co.signedInfo.locator.publicKey));
283 var publickeyHex = DataUtils.toHex(co.signedInfo.locator.publicKey).toLowerCase();
284 var publickeyString = DataUtils.toString(co.signedInfo.locator.publicKey);
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700285
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700286 var signature = DataUtils.toHex(co.signature.signature).toLowerCase();
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700287
288
289 var input = DataUtils.toString(co.rawSignatureData);
290
291
292 output += "DER Certificate: "+publickey ;
293
294 output+= "<br />";
295 output+= "<br />";
296
297
298
299 if(LOG>2) console.log(" ContentName + SignedInfo + Content = "+input);
300 if(LOG>2) console.log(" PublicKey = "+publickey );
301 if(LOG>2) console.log(" PublicKeyHex = "+publickeyHex );
302 if(LOG>2) console.log(" PublicKeyString = "+publickeyString );
303
304 if(LOG>2) console.log(" Signature "+signature );
305
306 if(LOG>2) console.log(" Signature NOW IS" );
307
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700308 if(LOG>2) console.log(co.signature.signature);
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700309
310
311 /*var x509 = new X509();
312
313 x509.readCertPEM(publickey);
314
315
316 //x509.readCertPEMWithoutRSAInit(publickey);
317
318 var result = x509.subjectPublicKeyRSA.verifyString(input, signature);*/
319 //console.log('result is '+result);
320
321
322 var kp = publickeyHex.slice(56,314);
323
324 output += "PUBLISHER KEY(hex): "+kp ;
325
326 output+= "<br />";
327 output+= "<br />";
328
329 console.log('PUBLIC KEY IN HEX is ');
330 console.log(kp);
331
332 var exp = publickeyHex.slice(318,324);
333
334 console.log('kp size is '+kp.length );
335 output += "exponent: "+exp ;
336
337 output+= "<br />";
338 output+= "<br />";
339
340 console.log('EXPONENT is ');
341 console.log(exp);
342
343
344
345 /*var c1 = hex_sha256(input);
346 var c2 = signature;
347
348 if(LOG>4)console.log('input is ');
349 if(LOG>4)console.log(input);
350 if(LOG>4)console.log('C1 is ');
351 if(LOG>4)console.log(c1);
352 if(LOG>4)console.log('C2 is ');
353 if(LOG>4)console.log(c2);
354 var result = c1 == c2;*/
355
356 var rsakey = new RSAKey();
357
358 rsakey.setPublic(kp,exp);
359
360 var result = rsakey.verifyString(input, signature);
361
362
363
364 console.log('PUBLIC KEY n after is ');
365 console.log(rsakey.n);
366
367 console.log('EXPONENT e after is ');
368 console.log(rsakey.e);
369
370
371 if(result)
372 output += 'SIGNATURE VALID';
373 else
374 output += 'SIGNATURE INVALID';
375
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700376 //output += "VALID: "+ toHex(co.signedInfo.locator.publicKey);
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700377
378 output+= "<br />";
379 output+= "<br />";
380
381
382 //if(LOG>4) console.log('str'[1]);
383 }
384
385 ////////////////////////////////////////
386
387
388 var forwardingEntry = decodeHexForwardingEntry(content);
389
390 if(LOG>3)console.log('FORWARDING ENTRY IS PRESENT');
391 if(LOG>3)console.log(forwardingEntry);
392
393 ///////////////////////////////////////
394
395 //var output ="";
396
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700397 if(forwardingEntry.action!=null ){
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700398 output+= "Action: ";
399
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700400 output+= DataUtils.toHex(forwardingEntry.action);
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700401
402 output+= "<br />";
403 output+= "<br />";
404 }
405
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700406 if(forwardingEntry.prefixName!=null){
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700407 output+= "PrefixName: ";
408
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700409 output+= forwardingEntry.prefixName.getName();
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700410 output+= "<br />";
411 }
412
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700413 if(forwardingEntry.ccndID!=null){
414 output+= "ccndID: ";
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700415
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700416 output+= forwardingEntry.ccndID;
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700417 output+= "<br />";
418 }
419
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700420 if(forwardingEntry.flags!=null){
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700421 output+= "Flags: ";
422
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700423 output+= forwardingEntry.flags;
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700424 output+= "<br />";
425 }
426
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700427 if(forwardingEntry.lifetime!=null){
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700428 output+= "Lifetime: ";
429
Jeff Thompsone85ff1d2012-09-29 21:21:57 -0700430 output+= forwardingEntry.lifetime;
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700431 output+= "<br />";
432 }
433
434
435 }
436
437
438
439 document.getElementById('result').innerHTML = output;
440
441 }
442
443 </script>
444
445</head>
446<body >
447 <form>
448
Jeff Thompson86aea882012-09-29 17:32:48 -0700449 Please Press Decode:<br />
Meki Cherkaoui8f173612012-06-06 01:05:40 -0700450
451
452 </form>
453 <button onclick="decode()">Decode</button>
454
455 <!-- p id="result-old-from-ccnx">01d2f2faa563636e7800fa0285e0a01e093968f9740ce7f4361babf5bb05a4e55aaca5e58f73eddeb8e013aa8f00fabd73656c6672656700fa1bf5048202aa03b208854a18988c72aee624da28e2e1acbccb209b8e89429041985521ed68f95a1c546872fba3d854b1377dc249b6d8ec5935e5069256c97a7f6d8a62e86222ccd2cfe5097aed3fe5ede6732ce191a8680d78e39d0c5058a2b7bb0f0687994e9f045de346b66c46498547a08da1f2f0cdfafba3afdfe7107931935ede79040137ba94a90000f20001a203e202851a4860caa4991e829bcdc9429fb711d52440968d23560726606050bf147acffc0002bab504fcb3f03aa40001e201da0a9530819f300d06092a864886f70d010101050003818d00308189028181008ed27580e3d1c4c67672208665133a1ba12d8ebf5cad8e054571926b3ff0782a04c71703384021a6cefb6616b66cbd8a679b761d69d6373a851546e26f7105510b4c23be9a3c7f2e652e100ecc1471855730659f1477ce4e8504ad1fd8f44116baaeae2ff67eec33abba790157a79bf5039e5a528a471d9d67c94e70117ed7490203010001000000019a0585058a04cabe73656c6672656700f2faad726f63636f000003e20285e0a01e093968f9740ce7f4361babf5bb05a4e55aaca5e58f73eddeb8e013aa8f0004fa8e330003d2d63231343734383336343700000000000002d28e310000</p-->
456
457 <p id="result">01d2f2faa563636e7800fa0285e0a01e093968f9740ce7f4361babf5bb05a4e55aaca5e58f73eddeb8e013aa8f00facd70726566697872656700fa29ad048202aa03b208854ddbf69779cdf4ef74be99474478c8bc3ca0873e0ffa1fa60120aa276db122b83404e595a8a3caeaf09630276658ba4e7beaadb4b91a8cc58e19ac4a42289507ed8d609aa9bef61a5a507f349c83d2944b8c16fecfd90d4a40ddb8687592c0a57517564235b2e359db54f51a37e1ac39e518a2196e3ffda7eb2fb301f3c404dd0000f20001a203e20285ef7c4f5d4743a8b8586ea2e741b7fc39d1dc0dbe1b1930e787cfd1d833ea7a610002bab504fce9e253d70001e2018219fd3082019b30820104020900b7d85c906bad52ee300d06092a864886f70d010105050030123110300e060355040313076178656c636476301e170d3132303432383233343433375a170d3132303532383233343433375a30123110300e060355040313076178656c63647630819f300d06092a864886f70d010101050003818d0030818902818100e17d30a7d828ab1b840b17542dcaf6207afd221e086b2a60d16cb7f54448ba9f3f08bcd099db21dd162a779e61aa89eee554d3a47de230bc7ac590d524067c3898bba6f5dc4360b845eda48cbd9cf126a723445f0e1952d7325a75faf556144f9a98af7186b0278685b8e2c08bea87171b4dee585c1828295b5395eb4a17779f0203010001300d06092a864886f70d010105050003818100cb3ab0357d7cd2ae97ed501e51a3a0e2817d418e47fb17906477af61495a7e8d8789141065b082d001f4b15193d0b43fb661cde20a6498372c6abbd3dcb9f0d12659ef07b3c6dbdf8bdf2f65477eed7adcd457d793b1c27badda7c5ade80ce95b7d8827fe78c8a35f3fb4ba648a081be2cfe84231abab3c2b531746df2e0492b000000019a02d5058a04cabe73656c6672656700f2faa56d656b69000004fa8e330003d2d63231343734383336343700000000000002d28e310000</p>
458
459</body>
460</html>