<?php header("Content-Type:text/html; charset=UTF-8");
error_reporting(E_ALL & ~E_NOTICE);
$d = $_SERVER['QUERY_STRING'];?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
<title>JS加密/解密工具 - 站长社站长工具</title>
<meta name="keywords" content="JS加密/解密工具,站长工具" />
<meta name="description" content="JS加密/解密工具" />
<link type="text/css" href="css/bootstrap.min.css" rel="stylesheet" />
<link type="text/css" href="css/main.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</head>
<body>
<?php include('topnav.php');?>

<div class="container" style="margin-top: 68px;">
<?php include("main_header.php");?>
	<div class="row" style="margin-top: 28px;">
		<div class="col-md-9">
			<div class="panel panel-tianyu">
				<header class="panel-heading">
					<span class="glyphicon glyphicon-link"></span><strong>JS加密/解密工具</strong>
				</header>
				<div class="panel-body">
				
				<div class="box">
            <div id="c">
              <h1>JS加密/解密</h1>
              <div class="box1" style="text-align:center;"> 
<script src="images/globals.js?ver=20100621" type="text/javascript"></script>
<script type="text/javascript">
 function jsencode(obj) {
    var v = getid('ipt').value;
    var es = escape(v);
    return String.format("document.write(unescape('{0}'));",es);
 } 
function jsdecode(obj) {
    var v = getid('ipt').value;
    var regex = /unescape\('([a-z%0-9]*)'\)/i;
    if(v.match(regex))
    {
        getid('ipt').value = unescape(RegExp.$1);
    }
 } 
 function test() {
    var win = window.open();
    win.document.open();
    win.document.write(getid('ipt').value);
    win.document.close();
 }
</script>
<div class="box">
  <div id="b_1">
    <div class="box1" style="text-align:center;">
    <span class="info3" >
      <textarea id="ipt" style=" border:1px solid #c5e2f2; width:800px; height:350px; overflow:visible;">请把你需要加密的内容粘贴在这里！</textarea>
    </span>
    <div id="detail">
       <input type="button" class=but onclick="if(this.value=='JS加密'){getid('ipt').value='<script>'+jsencode(this)+'</script>';this.value='JS解密';}else{jsdecode(this);this.value='JS加密';}" value="JS加密"/>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
       <input type="button" class=but onclick="test();" value="测试" />
    </div>
   </div>
  </div>
</div>
		  <divs style="text-align:left"><?php echo $results;?></div>
          <div style="width:100%">
              <div id="detail" class="info1">
<div id="result" class="div_whois">
<div class="t" style="display:none" id="seo_result">
</div>
      </div>
            </div>
              <div style="float:right; width:40%; text-align:right; padding-top:9px;">
              </div>
          </div>
      </div>
    </div>

				
					
				</div>
			</div>
		</div>
		<div class="col-md-3">
			<div class="panel panel-tianyu">
				<header class="panel-heading">
					<span class="glyphicon glyphicon-wrench"></span>工具介绍
				</header>
				<div class="panel-body">
						<p>JS加密/解密工具</p>
				</div>
			</div>
		</div>
		<div class="col-md-3">
			<div class="panel panel-tianyu">
				<header class="panel-heading">
					<span class="glyphicon glyphicon-save"></span>下载源码
				</header>
				<div class="panel-body">
						<p>本工具源码提供下载</p>
						<a href="http://www.zzs1.com/code/" class="btn btn-tianyu" target="_blank"><span class="glyphicon glyphicon-save">下载地址</a>
				</div>
			</div>
		</div>
	</div>
</div>
<?php include('footer.php');?>
<script type="text/javascript" src="http://v3.jiathis.com/code/jia.js?uid=1361866808579755" charset="utf-8"></script>
</body>
</html>