关于加密解密 Base64 and URL and Hex Encoding and Decoding
关于加密解密 Base64 and URL and Hex Encoding and Decoding
发布时间:2016-12-29 来源:查字典编辑
摘要:今天想换一下Discuz论坛的风格,谁知下载风格文件后,发现竟然是通过Base64加密过的小林给推荐了个解密的页面,提取出代码如下:复制代码...

今天想换一下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=textstyle='width:100%;height:75%;'onfocus='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>

<divstyle="padding:0.2cm;"><ahref="http://ostermiller.org/calc/">Moreconverters,calculators,andotherJavaScriptgoodies</a></div>

<divstyle="padding:0.2cm;text-align:right;"><ahref="http://ostermiller.org/">ostermiller.org</a>(<ahref="http://ostermiller.org/siteindex.html">siteindex</a>)</div>

<divstyle="padding:0.2cm;"><p>Copyright<ahref="http://ostermiller.org/contact.pl?regarding=JavaScript+Encoding"class=mail>StephenOstermiller</a>2003-2006</p></div>

</body>

</html>

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新脚本加解密学习
热门脚本加解密学习
编程开发子分类