febs-browser
Advanced tools
Comparing version 0.7.1 to 0.7.2
@@ -287,2 +287,12 @@ febs 库是一些常用的工具的合集; | ||
febs.crypt.base64_encode(arrByte) | ||
/** | ||
* @desc: 计算md5. | ||
* @return: string | ||
*/ | ||
febs.crypt.md5( strOrBuffer ) | ||
/** | ||
* @desc: 计算sh1. | ||
* @return: string | ||
*/ | ||
febs.crypt.sha1( strOrBuffer ) | ||
``` | ||
@@ -289,0 +299,0 @@ |
@@ -10,2 +10,4 @@ /** | ||
var crypt = require('../../common/crypt'); | ||
var sha1 = require('sha1'); | ||
var md5 = require('md5'); | ||
@@ -71,2 +73,6 @@ /** | ||
// exports.sha1 = sha1; | ||
// exports.md5 = md5; | ||
/** | ||
@@ -73,0 +79,0 @@ * @desc: base64编码. |
@@ -5,3 +5,5 @@ { | ||
"bignumber.js": "^4.0.1", | ||
"console-polyfill": "^0.3.0" | ||
"console-polyfill": "^0.3.0", | ||
"md5": "^2.2.1", | ||
"sha1": "^1.1.1" | ||
}, | ||
@@ -67,7 +69,7 @@ "devDependencies": { | ||
"scripts": { | ||
"build": "node scripts/webpack.build.js", | ||
"build": "node scripts/webpack.build.js", | ||
"prepare": "node scripts/webpack.build.js" | ||
}, | ||
"name": "febs-browser", | ||
"version": "0.7.1" | ||
"version": "0.7.2" | ||
} |
@@ -287,2 +287,12 @@ febs 库是一些常用的工具的合集; | ||
febs.crypt.base64_encode(arrByte) | ||
/** | ||
* @desc: 计算md5. | ||
* @return: string | ||
*/ | ||
febs.crypt.md5( strOrBuffer ) | ||
/** | ||
* @desc: 计算sh1. | ||
* @return: string | ||
*/ | ||
febs.crypt.sha1( strOrBuffer ) | ||
``` | ||
@@ -289,0 +299,0 @@ |
@@ -202,3 +202,14 @@ // Type definitions for febs | ||
function crc32_file(fileObj: object, cb: (crc32: number) => void): void; | ||
/** | ||
* @desc: 计算字符串的md5值 | ||
* @return: string. | ||
*/ | ||
function md5(str: string|Buffer): string; | ||
/** | ||
* @desc: 计算字符串的sha1值 | ||
* @return: string. | ||
*/ | ||
function sha1(str: string|Buffer): string; | ||
/** | ||
* @desc: base64编码. | ||
@@ -205,0 +216,0 @@ * @param arrByte: 字节数组. |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1452536
14546
457
4
+ Addedmd5@^2.2.1
+ Addedsha1@^1.1.1
+ Addedcharenc@0.0.2(transitive)
+ Addedcrypt@0.0.2(transitive)
+ Addedis-buffer@1.1.6(transitive)
+ Addedmd5@2.3.0(transitive)
+ Addedsha1@1.1.1(transitive)