Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zswang/jmd5s
md5 函数封装
https://github.com/zswang/jmd5s
md5
Last synced: about 1 month ago
JSON representation
md5 函数封装
- Host: GitHub
- URL: https://github.com/zswang/jmd5s
- Owner: zswang
- Created: 2014-09-18T05:49:04.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-24T06:26:06.000Z (almost 9 years ago)
- Last Synced: 2024-10-01T04:24:33.963Z (about 1 month 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)
======[![Build Status](https://img.shields.io/travis/zswang/jmd5s/master.svg)](https://travis-ci.org/zswang/jmd5s)
[![NPM version](https://img.shields.io/npm/v/jmd5s.svg)](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.');
}
```