https://github.com/zswang/jmd5s
md5 函数封装
https://github.com/zswang/jmd5s
md5
Last synced: about 1 year ago
JSON representation
md5 函数封装
- Host: GitHub
- URL: https://github.com/zswang/jmd5s
- Owner: zswang
- Created: 2014-09-18T05:49:04.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-11-24T06:26:06.000Z (over 10 years ago)
- Last Synced: 2025-02-24T07:12:31.897Z (over 1 year ago)
- Topics: md5
- Language: JavaScript
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
jmd5s(*5)
======
[](https://travis-ci.org/zswang/jmd5s)
[](http://badge.fury.io/js/jmd5s)
## 概述 「Overview」
jmd5s 是 md5 函数的封装,主要是为方便用 bower 管理
## API
```js
/**
* 进行 md5 编码
*
* @param {string} str 需要编码的字符串
* @return {string} 返回对应的 MD5 十六进制字符串
*/
function encode(str) { }
```
## 示例 「Examples」
```js
var password = prompt("input password"); // foo
if (jmd5s.encode(password) === 'acbd18db4cc2f85cedef654fccc4a4d8') {
alert('Login successful.');
}
```