https://github.com/airdwing/node-appkey
AppKey/AppSecret生成器
https://github.com/airdwing/node-appkey
api key node secret
Last synced: 10 months ago
JSON representation
AppKey/AppSecret生成器
- Host: GitHub
- URL: https://github.com/airdwing/node-appkey
- Owner: AirDwing
- Created: 2017-05-16T02:11:38.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-28T02:03:01.000Z (over 8 years ago)
- Last Synced: 2025-04-11T17:00:01.843Z (about 1 year ago)
- Topics: api, key, node, secret
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/appkey
- Size: 17.6 KB
- Stars: 9
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AppKey
App Key/Secret Generator
[](https://npmjs.org/package/appkey) [](https://npmjs.org/package/appkey)
[](https://npmjs.org/package/appkey)
## 安装及使用
```bash
yarn add appkey
# 或
npm i -S appkey
```
示例代码:
```js
const gen = require('appkey');
const {key, secret} = gen();
console.log(key, secret);
```
## 参数说明
- SALT(string): 加盐参数
- Length(int): 生成的`Key`长度
`SALT`默认值为6位随机字符,默认生成的`Key`为36字节,`Secret`长度固定为32个字节.
## Benchmark
```
gen x 121,577 ops/sec ±1.12% (78 runs sampled)
```
## License
MIT
通过支付宝捐赠:
