Skip to content
AppKey/AppSecret生成器 https://www.npmjs.com/package/appkey
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
benchmark
src
.editorconfig
.eslintrc.yml
.gitignore
LICENSE
README.md
package.json
yarn.lock

README.md

AppKey

App Key/Secret Generator

npm npm npm

安装及使用

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个字节.

Benchmark

gen x 121,577 ops/sec ±1.12% (78 runs sampled)

License

Apache 2.0

通过支付宝捐赠:

qr

You can’t perform that action at this time.