App Key/Secret Generator
yarn add appkey
# 或
npm i -S appkey
示例代码:
const gen = require('appkey');
const {key, secret} = gen();
console.log(key, secret);
- SALT(string): 加盐参数
- Length(int): 生成的
Key
长度
SALT
默认值为6位随机字符,默认生成的Key
为36字节,Secret
长度固定为32个字节.
gen x 121,577 ops/sec ±1.12% (78 runs sampled)
Apache 2.0
通过支付宝捐赠: