zoukankan      html  css  js  c++  java
  • 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>
  • 相关阅读:
    开源项目记录
    Linux的磁盘分区(一)
    Linux下的用户权限
    HeapSort 堆排序
    git参考手册
    SGU 分类
    20130704
    七月三日

    20130629
  • 原文地址:https://www.cnblogs.com/alexis/p/1686203.html
Copyright © 2011-2022 走看看