js加密网站源码是什么(js加密解密源代码)

2023-02-28 3:14:10 摩斯密码知识 思思

谁有用js加密,用java对应解密的 源代码

script language="javascript"

var str;

function showUnico(){

if(document.getElementById("before").value.length 0){

str = escape(document.getElementById("before").value);

document.getElementById("after").value = str;

}

else alert("请输入要加密的代码");

}

function showHtml(){

if(document.getElementById("after").value.length 0){

str = unescape(document.getElementById("after").value);

document.getElementById("before").value = str;

}

else alert("请输入要解密的代码");

}

function clearBoth(){

document.getElementById("before").value = "";

document.getElementById("after").value = "";

}

/script

body

center

table

tr

th加密前/th

th加密后/th

/tr

tr

td

textarea id="before" style="width: 200px; height: 174px"/textarea

/td

td

textarea id="after" style="width: 200px; height: 174px"/textarea

/td

/tr

/table

br

input type="button" value="加密" onclick="showUnico()"

input type="button" value="解密" onclick="showHtml()"

input type="button" value="全部清空" onclick="clearBoth()"

/center

/body

js如何加密源代码,页面样式全部用js写,如何操作?

js加密,可以用JShaman实现,

网页源码加密,可以用ShareWAF,

你这两个需求,都是能实现的,

js加密网站源码是什么(js加密解密源代码) 第1张

网页源码可以加密吗?

js可以加密,普通的html网页代码不可以。做网页的源码是可以加密的,比如asp,php,.net的,都可以加密,不过asp的可以用工具解密,php的好像也可以解密,只不过效果不是很好。.net的,应该是不可以的。.js的代码加密,当然可以解密的,因为她执行以下都出来了。呵呵~