jQuery MD5加密
有时候我们想在js里面使用加密,jQuery就提供了这样的插件,用法十分简单:
$(md("你想要加密的字符串"));
md5插件下载地址:http://plugins.jquery.com/project/md5
下面是我的简单例子
代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script type="text/javascript" src="Scripts/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="Scripts/jquery.md5.js"></script>
<script type="text/javascript">
alert($.md5("Hello"));
</script>
</head>
<body>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script type="text/javascript" src="Scripts/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="Scripts/jquery.md5.js"></script>
<script type="text/javascript">
alert($.md5("Hello"));
</script>
</head>
<body>
</body>
</html>
如果您喜欢我的文章,您可以通过支付宝对我进行捐助,您的支持是我最大的动力https://me.alipay.com/alexis
作者:Alexis
出处:http://www.cnblogs.com/alexis/
关于作者:专注于Windows Phone 7、Silverlight、Web前端(jQuery)。
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,如有问题,可以通过shuifengxuATgmail.com 联系我,非常感谢。

有时候我们想在js里面使用加密,jQuery就提供了这样的插件,用法十分简单:
$(md("你想要加密的字符串"));
md5插件下载地址:http://plugins.jquery.com/project/md5
下面是我的简单例子

浙公网安备 33010602011771号