今天想换一下Discuz论坛的风格,谁知下载风格文件后,发现竟然是通过Base64加密过的
小林给推荐了个解密的页面,提取出代码如下:
复制代码 代码如下:
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01Transitional//EN">
<html>
<head>
<title>Base64andURLandHexEncodingandDecoding</title>
<metaname="description"content="EncodesordecodesdatainBase64orURLencodingusingclientsideJavaScript"/>
<metaname="keywords"content="base64,base64,urlencode,urldecode,hexencode,hexencode,hexdecodehexdecode,javascriptbase64,javascriptbase64,javascripturlencode,javascripturldecode,javascripthexencode,javascripthexdecode"/>
<linkrel="shortcuticon"href="http://ostermiller.org/favicon.ico"type="image/x-icon"/>
<scriptlanguage=javascripttype="text/javascript">
<></script>
</head>
<body>
<formname=codeonsubmit="returnfalse()">
<textareaname=textonfocus='if(this.value=="Entertexttoencodeordecodehere."){this.value="";}'>Entertexttoencodeordecodehere.</textarea>
<table>
<tr><tdalign=center>
<inputvalue="Encode"type=buttononclick="document.code.text.value=urlEncode(document.code.text.value);">
</td><tdalign=center>
URL
</td><tdalign=center>
<inputvalue="Decode"type=buttononclick="document.code.text.value=urlDecode(document.code.text.value);">
</td></tr>
<tr><tdalign=center>
<inputvalue="Encode"type=buttononclick="document.code.text.value=encodeBase64(document.code.text.value);">
</td><tdalign=center>
Base64
</td><tdalign=center>
<inputvalue="Decode"type=buttononclick="document.code.text.value=decodeBase64(document.code.text.value);">
</td></tr>
<tr><tdalign=center>
<inputvalue="Encode"type=buttononclick="document.code.text.value=encodeHex(document.code.text.value);">
</td><tdalign=center>
Hex
</td><tdalign=center>
<inputvalue="Decode"type=buttononclick="document.code.text.value=decodeHex(document.code.text.value);">
</td></tr>
<tr><tdalign=center>
</td><tdalign=center>
<inputtype=resetvalue=Clear>
</td><tdalign=center>
</td></tr>
</table>
</form>
<hr>
Base64encode/decodewasportedfroma<ahref="http://ostermiller.org/utils/Base64.html">JavaBase64encoder/decoder</a>.<br>
Base64encode/decodewasportedto<ahref="http://ostermiller.org/base64_actionscript.html">MacromediaActionscript</a>.<br>
<h3>License</h3>
<p>Thisprogramisfreesoftware;youcanredistributeitand/ormodifyit
underthetermsoftheGNUGeneralPublicLicenseaspublishedbytheFree
SoftwareFoundation;eitherversion2oftheLicense,or(atyouroption)
anylaterversion.</p>
<p>Thisprogramisdistributedinthehopethatitwillbeuseful,
butWITHOUTANYWARRANTY;withouteventheimpliedwarrantyofMERCHANTABILITY
orFITNESSFORAPARTICULARPURPOSE.Seethe
<ahref="http://www.gnu.org/copyleft/gpl.html">GNU
GeneralPublicLicense</a>formoredetails.</p>
<div><ahref="http://ostermiller.org/calc/">Moreconverters,calculators,andotherJavaScriptgoodies</a></div>
<div><ahref="http://ostermiller.org/">ostermiller.org</a>(<ahref="http://ostermiller.org/siteindex.html">siteindex</a>)</div>
<div><p>Copyright<ahref="http://ostermiller.org/contact.pl?regarding=JavaScript+Encoding"class=mail>StephenOstermiller</a>2003-2006</p></div>
</body>
</html>