Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "appkey", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "App Key/Secret Generator", | ||
@@ -9,2 +9,5 @@ "main": "src/index.js", | ||
}, | ||
"scripts": { | ||
"benchmark": "matcha benchmark -R plain" | ||
}, | ||
"dependencies": {}, | ||
@@ -16,3 +19,4 @@ "devDependencies": { | ||
"eslint-plugin-jsx-a11y": "^5.0.1", | ||
"eslint-plugin-react": "^7.0.1" | ||
"eslint-plugin-react": "^7.0.1", | ||
"matcha": "^0.7.0" | ||
}, | ||
@@ -19,0 +23,0 @@ "repository": "git@github.com:AirDwing/node-appkey.git", |
@@ -32,2 +32,13 @@ # AppKey | ||
## Benchmark | ||
``` | ||
Benchmark | ||
gen ............................................ 138,249 op/s | ||
Suites: 1 | ||
Benches: 1 | ||
Elapsed: 762.67 ms | ||
``` | ||
## License | ||
@@ -34,0 +45,0 @@ |
const crypto = require('crypto'); | ||
const x = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; | ||
const maxPos = x.length; | ||
const md5 = str => crypto.createHash('md5').update(`${str}`).digest('hex'); | ||
const randStr = (len = 36) => { | ||
const maxPos = x.length; | ||
let pwd = ''; | ||
@@ -9,0 +9,0 @@ for (let i = 0; i < len; i += 1) { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40414
8
58
50
6