Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 1 | <?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>
|
Axel Colin de Verdiere | 2758c46 | 2012-06-06 08:50:05 -0700 | [diff] [blame] | 7 | <title>NDN Request Example</title>
|
| 8 |
|
Jeff Thompson | 7ed5ef5 | 2012-08-26 11:28:48 -0700 | [diff] [blame] | 9 | <script type="text/javascript" src="../java_socket_bridge.js"></script>
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 10 |
|
Jeff Thompson | 7ed5ef5 | 2012-08-26 11:28:48 -0700 | [diff] [blame] | 11 | <script type="text/javascript" src="../CCNProtocolDTags.js"></script>
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 12 |
|
Jeff Thompson | 7ed5ef5 | 2012-08-26 11:28:48 -0700 | [diff] [blame] | 13 | <script type="text/javascript" src="../CCNTime.js"></script>
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 14 |
|
Jeff Thompson | f3bd359 | 2012-09-29 23:25:30 -0700 | [diff] [blame^] | 15 | <script type="text/javascript" src="../Name.js"></script>
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 16 |
|
Jeff Thompson | 7ed5ef5 | 2012-08-26 11:28:48 -0700 | [diff] [blame] | 17 | <script type="text/javascript" src="../ContentObject.js"></script>
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 18 |
|
Jeff Thompson | 7ed5ef5 | 2012-08-26 11:28:48 -0700 | [diff] [blame] | 19 | <script type="text/javascript" src="../DateFormat.js"></script>
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 20 |
|
Jeff Thompson | 7ed5ef5 | 2012-08-26 11:28:48 -0700 | [diff] [blame] | 21 | <script type="text/javascript" src="../Exclude.js"></script>
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 22 |
|
Jeff Thompson | 7ed5ef5 | 2012-08-26 11:28:48 -0700 | [diff] [blame] | 23 | <script type="text/javascript" src="../ExcludeAny.js"></script>
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 24 |
|
Jeff Thompson | 7ed5ef5 | 2012-08-26 11:28:48 -0700 | [diff] [blame] | 25 | <script type="text/javascript" src="../ExcludeComponent.js"></script>
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 26 |
|
Jeff Thompson | 7ed5ef5 | 2012-08-26 11:28:48 -0700 | [diff] [blame] | 27 | <script type="text/javascript" src="../Interest.js"></script>
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 28 |
|
Jeff Thompson | 7ed5ef5 | 2012-08-26 11:28:48 -0700 | [diff] [blame] | 29 | <script type="text/javascript" src="../KeyLocator.js"></script>
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 30 |
|
Jeff Thompson | 7ed5ef5 | 2012-08-26 11:28:48 -0700 | [diff] [blame] | 31 | <script type="text/javascript" src="../PublisherID.js"></script>
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 32 |
|
Jeff Thompson | 7ed5ef5 | 2012-08-26 11:28:48 -0700 | [diff] [blame] | 33 | <script type="text/javascript" src="../Signature.js"></script>
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 34 |
|
Jeff Thompson | 7ed5ef5 | 2012-08-26 11:28:48 -0700 | [diff] [blame] | 35 | <script type="text/javascript" src="../SignedInfo.js"></script>
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 36 |
|
Jeff Thompson | 7ed5ef5 | 2012-08-26 11:28:48 -0700 | [diff] [blame] | 37 | <script type="text/javascript" src="../PublisherPublicKeyDigest.js"></script>
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 38 |
|
Jeff Thompson | 7ed5ef5 | 2012-08-26 11:28:48 -0700 | [diff] [blame] | 39 | <script type="text/javascript" src="../FaceInstance.js"></script>
|
Axel Colin de Verdiere | 2758c46 | 2012-06-06 08:50:05 -0700 | [diff] [blame] | 40 |
|
Jeff Thompson | 7ed5ef5 | 2012-08-26 11:28:48 -0700 | [diff] [blame] | 41 | <script type="text/javascript" src="../ForwardingEntry.js"></script>
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 42 |
|
Jeff Thompson | 7ed5ef5 | 2012-08-26 11:28:48 -0700 | [diff] [blame] | 43 | <script type="text/javascript" src="../encoding/BinaryXMLEncoder.js"></script>
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 44 |
|
Jeff Thompson | 7ed5ef5 | 2012-08-26 11:28:48 -0700 | [diff] [blame] | 45 | <script type="text/javascript" src="../encoding/BinaryXMLCodec.js"></script>
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 46 |
|
Jeff Thompson | 7ed5ef5 | 2012-08-26 11:28:48 -0700 | [diff] [blame] | 47 | <script type="text/javascript" src="../encoding/BinaryXMLDecoder.js"></script>
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 48 |
|
Jeff Thompson | 7ed5ef5 | 2012-08-26 11:28:48 -0700 | [diff] [blame] | 49 | <script type="text/javascript" src="../encoding/DataUtils.js"></script>
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 50 |
|
Jeff Thompson | 7ed5ef5 | 2012-08-26 11:28:48 -0700 | [diff] [blame] | 51 | <script language="JavaScript" type="text/javascript" src="../security/KeyManager.js"></script>
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 52 |
|
Jeff Thompson | 7ed5ef5 | 2012-08-26 11:28:48 -0700 | [diff] [blame] | 53 | <script language="JavaScript" type="text/javascript" src="../securityLib/jsbn.js"></script>
|
| 54 | <script language="JavaScript" type="text/javascript" src="../securityLib/jsbn2.js"></script>
|
| 55 | <script language="JavaScript" type="text/javascript" src="../securityLib/rsa.js"></script>
|
| 56 | <script language="JavaScript" type="text/javascript" src="../securityLib/rsa2.js"></script>
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 57 |
|
Jeff Thompson | 7ed5ef5 | 2012-08-26 11:28:48 -0700 | [diff] [blame] | 58 | <script language="JavaScript" type="text/javascript" src="../securityLib/sha1.js"></script>
|
| 59 | <script language="JavaScript" type="text/javascript" src="../securityLib/sha256.js"></script>
|
| 60 | <script language="JavaScript" type="text/javascript" src="../securityLib/sha512.js"></script>
|
| 61 | <script language="JavaScript" type="text/javascript" src="../securityLib/md5.js"></script>
|
| 62 | <script language="JavaScript" type="text/javascript" src="../securityLib/ripemd160.js"></script>
|
| 63 | <script language="JavaScript" type="text/javascript" src="../securityLib/base64.js"></script>
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 64 |
|
Jeff Thompson | 7ed5ef5 | 2012-08-26 11:28:48 -0700 | [diff] [blame] | 65 | <script language="JavaScript" type="text/javascript" src="../securityLib/rsapem-1.1.js"></script>
|
| 66 | <script language="JavaScript" type="text/javascript" src="../securityLib/rsasign-1.2.js"></script>
|
| 67 | <script language="JavaScript" type="text/javascript" src="../securityLib/asn1hex-1.1.js"></script>
|
| 68 | <script language="JavaScript" type="text/javascript" src="../securityLib/x509-1.1.js"></script>
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 69 |
|
| 70 | <script type="text/javascript">
|
Axel Colin de Verdiere | 2758c46 | 2012-06-06 08:50:05 -0700 | [diff] [blame] | 71 |
|
| 72 | function encode(){
|
Jeff Thompson | f3bd359 | 2012-09-29 23:25:30 -0700 | [diff] [blame^] | 73 | var contentname = new Name( createNameArray(document.getElementById('contentname').value) );
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 74 |
|
Axel Colin de Verdiere | 2758c46 | 2012-06-06 08:50:05 -0700 | [diff] [blame] | 75 | var content = document.getElementById('content').value;
|
| 76 |
|
| 77 | var signedInfo = new SignedInfo();
|
| 78 | signedInfo.setFields();
|
| 79 | //var signatureBits = generateSignatureBits(contentname,content,signedInfo);
|
| 80 |
|
| 81 | //witness is null
|
| 82 | var signature = new Signature();
|
| 83 |
|
| 84 |
|
| 85 | var co = new ContentObject(contentname,signedInfo,content,signature);
|
| 86 |
|
| 87 | co.sign();
|
| 88 |
|
| 89 |
|
| 90 | var output = encodeToHexContentObject(co);
|
| 91 |
|
| 92 | document.getElementById('result').innerHTML = output;
|
| 93 |
|
| 94 | }
|
| 95 |
|
| 96 | function decode(){
|
| 97 |
|
| 98 |
|
| 99 |
|
| 100 | var input = document.getElementById('result').innerHTML;
|
| 101 |
|
| 102 |
|
| 103 | var co = decodeHexContentObject(input);
|
| 104 |
|
| 105 | if(LOG>3)console.log('CONTENT OBJECT DECODED');
|
| 106 | if(LOG>3)console.log(co);
|
| 107 |
|
Meki Cherkaoui | 8f17361 | 2012-06-06 01:05:40 -0700 | [diff] [blame] | 108 | ///////////////////////////////////////
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 109 |
|
| 110 | var output ="";
|
| 111 |
|
Axel Colin de Verdiere | 2758c46 | 2012-06-06 08:50:05 -0700 | [diff] [blame] | 112 | if(co==-1)
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 113 | output+= "NO CONTENT FOUND"
|
Axel Colin de Verdiere | 2758c46 | 2012-06-06 08:50:05 -0700 | [diff] [blame] | 114 | else if (co==-2)
|
| 115 | output+= "CONTENT NAME IS EMPTY"
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 116 | else{
|
Jeff Thompson | e85ff1d | 2012-09-29 21:21:57 -0700 | [diff] [blame] | 117 | if(co.name!=null && co.name.components!=null){
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 118 | output+= "NAME: ";
|
| 119 |
|
Jeff Thompson | e85ff1d | 2012-09-29 21:21:57 -0700 | [diff] [blame] | 120 | for(var i=0;i<co.name.components.length;i++){
|
| 121 | output+= "/"+ toString(co.name.components[i]);
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 122 | }
|
| 123 | output+= "<br />";
|
| 124 | output+= "<br />";
|
| 125 | }
|
| 126 |
|
Jeff Thompson | 86aea88 | 2012-09-29 17:32:48 -0700 | [diff] [blame] | 127 | if(co.content !=null){
|
| 128 | output += "CONTENT(ASCII): "+ toString(co.content);
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 129 |
|
| 130 | output+= "<br />";
|
| 131 | output+= "<br />";
|
| 132 | }
|
Jeff Thompson | 86aea88 | 2012-09-29 17:32:48 -0700 | [diff] [blame] | 133 | if(co.content !=null){
|
| 134 | output += "CONTENT(hex): "+ toHex(co.content);
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 135 |
|
| 136 | output+= "<br />";
|
| 137 | output+= "<br />";
|
| 138 | }
|
Jeff Thompson | e85ff1d | 2012-09-29 21:21:57 -0700 | [diff] [blame] | 139 | if(co.signature !=null && co.signature.signature!=null){
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 140 |
|
Jeff Thompson | e85ff1d | 2012-09-29 21:21:57 -0700 | [diff] [blame] | 141 | output += "SIGNATURE(hex): "+ toHex(co.signature.signature);
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 142 |
|
| 143 | output+= "<br />";
|
| 144 | output+= "<br />";
|
| 145 | }
|
Jeff Thompson | e85ff1d | 2012-09-29 21:21:57 -0700 | [diff] [blame] | 146 | if(co.signedInfo !=null && co.signedInfo.publisher!=null && co.signedInfo.publisher.publisherPublicKeyDigest!=null){
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 147 |
|
Jeff Thompson | e85ff1d | 2012-09-29 21:21:57 -0700 | [diff] [blame] | 148 | output += "Publisher Public Key Digest(hex): "+ toHex(co.signedInfo.publisher.publisherPublicKeyDigest);
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 149 |
|
| 150 | output+= "<br />";
|
| 151 | output+= "<br />";
|
| 152 | }
|
Jeff Thompson | e85ff1d | 2012-09-29 21:21:57 -0700 | [diff] [blame] | 153 | if(co.signedInfo !=null && co.signedInfo.timestamp!=null){
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 154 |
|
Jeff Thompson | e85ff1d | 2012-09-29 21:21:57 -0700 | [diff] [blame] | 155 | output += "TimeStamp(hex): "+ co.signedInfo.timestamp.date;
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 156 |
|
| 157 | output+= "<br />";
|
| 158 | output+= "<br />";
|
| 159 | }
|
Jeff Thompson | e85ff1d | 2012-09-29 21:21:57 -0700 | [diff] [blame] | 160 | if(co.signedInfo!=null && co.signedInfo.locator!=null && co.signedInfo.locator.publicKey!=null){
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 161 |
|
Jeff Thompson | e85ff1d | 2012-09-29 21:21:57 -0700 | [diff] [blame] | 162 | var publickey = rstr2b64(toString(co.signedInfo.locator.publicKey));
|
| 163 | var publickeyHex = toHex(co.signedInfo.locator.publicKey).toLowerCase();
|
| 164 | var publickeyString = toString(co.signedInfo.locator.publicKey);
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 165 |
|
Jeff Thompson | e85ff1d | 2012-09-29 21:21:57 -0700 | [diff] [blame] | 166 | var signature = toHex(co.signature.signature).toLowerCase();
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 167 |
|
| 168 |
|
Axel Colin de Verdiere | 2758c46 | 2012-06-06 08:50:05 -0700 | [diff] [blame] | 169 | var input = toString(co.rawSignatureData);
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 170 |
|
| 171 |
|
| 172 | output += "DER Certificate: "+publickey ;
|
Axel Colin de Verdiere | 2758c46 | 2012-06-06 08:50:05 -0700 | [diff] [blame] | 173 |
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 174 | output+= "<br />";
|
| 175 | output+= "<br />";
|
| 176 |
|
Axel Colin de Verdiere | 2758c46 | 2012-06-06 08:50:05 -0700 | [diff] [blame] | 177 |
|
| 178 |
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 179 | if(LOG>2) console.log(" ContentName + SignedInfo + Content = "+input);
|
| 180 | if(LOG>2) console.log(" PublicKey = "+publickey );
|
| 181 | if(LOG>2) console.log(" PublicKeyHex = "+publickeyHex );
|
| 182 | if(LOG>2) console.log(" PublicKeyString = "+publickeyString );
|
| 183 |
|
| 184 | if(LOG>2) console.log(" Signature "+signature );
|
| 185 | if(LOG>2) console.log(" Signature NOW IS" );
|
Jeff Thompson | e85ff1d | 2012-09-29 21:21:57 -0700 | [diff] [blame] | 186 | if(LOG>2) console.log(co.signature.signature);
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 187 |
|
| 188 |
|
Axel Colin de Verdiere | 2758c46 | 2012-06-06 08:50:05 -0700 | [diff] [blame] | 189 | var x509 = new X509();
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 190 |
|
| 191 | x509.readCertPEM(publickey);
|
| 192 |
|
| 193 |
|
| 194 | //x509.readCertPEMWithoutRSAInit(publickey);
|
| 195 |
|
Axel Colin de Verdiere | 2758c46 | 2012-06-06 08:50:05 -0700 | [diff] [blame] | 196 | var result = x509.subjectPublicKeyRSA.verifyString(input, signature);
|
| 197 | console.log('result is '+result);
|
| 198 | /*var rsakey = new RSAKey();
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 199 |
|
| 200 | var kp = publickeyHex.slice(56,314);
|
| 201 |
|
| 202 | output += "PUBLISHER KEY(hex): "+kp ;
|
| 203 |
|
| 204 | output+= "<br />";
|
| 205 | output+= "<br />";
|
| 206 |
|
Axel Colin de Verdiere | 2758c46 | 2012-06-06 08:50:05 -0700 | [diff] [blame] | 207 | console.log('kp is '+kp);
|
| 208 |
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 209 | var exp = publickeyHex.slice(318,324);
|
| 210 |
|
| 211 | console.log('kp size is '+kp.length );
|
| 212 | output += "exponent: "+exp ;
|
| 213 |
|
| 214 | output+= "<br />";
|
| 215 | output+= "<br />";
|
| 216 |
|
Axel Colin de Verdiere | 2758c46 | 2012-06-06 08:50:05 -0700 | [diff] [blame] | 217 | console.log('exp is '+exp);
|
Meki Cherkaoui | 8f17361 | 2012-06-06 01:05:40 -0700 | [diff] [blame] | 218 |
|
| 219 |
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 220 | rsakey.setPublic(kp,exp);
|
Meki Cherkaoui | 8f17361 | 2012-06-06 01:05:40 -0700 | [diff] [blame] | 221 |
|
Axel Colin de Verdiere | 2758c46 | 2012-06-06 08:50:05 -0700 | [diff] [blame] | 222 | var result = rsakey.verifyString(input, signature);*/
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 223 |
|
| 224 | if(result)
|
| 225 | output += 'SIGNATURE VALID';
|
| 226 | else
|
| 227 | output += 'SIGNATURE INVALID';
|
| 228 |
|
| 229 |
|
| 230 |
|
| 231 |
|
Jeff Thompson | e85ff1d | 2012-09-29 21:21:57 -0700 | [diff] [blame] | 232 | //output += "VALID: "+ toHex(co.signedInfo.locator.publicKey);
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 233 |
|
| 234 | output+= "<br />";
|
| 235 | output+= "<br />";
|
| 236 |
|
| 237 |
|
Axel Colin de Verdiere | 2758c46 | 2012-06-06 08:50:05 -0700 | [diff] [blame] | 238 | if(LOG>4) console.log('str'[1]);
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 239 | }
|
| 240 | }
|
| 241 |
|
| 242 | document.getElementById('result').innerHTML = output;
|
Axel Colin de Verdiere | 2758c46 | 2012-06-06 08:50:05 -0700 | [diff] [blame] | 243 |
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 244 | }
|
Axel Colin de Verdiere | 2758c46 | 2012-06-06 08:50:05 -0700 | [diff] [blame] | 245 |
|
| 246 | </script>
|
| 247 |
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 248 | </head>
|
| 249 | <body >
|
| 250 | <form>
|
Axel Colin de Verdiere | 2758c46 | 2012-06-06 08:50:05 -0700 | [diff] [blame] | 251 |
|
| 252 | Please Enter a Content Name:<br />
|
| 253 |
|
| 254 | <input id="contentname" type="text" name="CONTENTNAME" value="/PARC/abc" />
|
| 255 |
|
| 256 | Please Enter the Content:<br />
|
| 257 |
|
| 258 | <textarea id="content" cols="40" rows="5" name="CONTENT" value="SUCCESS" >SUCCESS!</textarea>
|
| 259 |
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 260 | </form>
|
Axel Colin de Verdiere | 2758c46 | 2012-06-06 08:50:05 -0700 | [diff] [blame] | 261 | <button onclick="encode()">Encode</button>
|
| 262 | <button onclick="decode()">Decode</button>
|
| 263 |
|
| 264 |
|
Meki Cherkaoui | 88d59cd | 2012-05-14 07:34:58 -0700 | [diff] [blame] | 265 |
|
| 266 | <p id="result"></p>
|
| 267 |
|
| 268 | </body>
|
| 269 | </html> |