1.0.11 • Published 3 years ago

@anzerr/ngen.util v1.0.11

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Intro

GitHub Actions status | publish

Generating numbers with a secret that you can release later

Install

npm install --save git+https://github.com/anzerr/ngen.util.git
npm install --save @anzerr/ngen.util

Example

const Gen = require('ngen.util');

const g = new Gen('8PILspWVIRmYYmxjDX3G'); // secret
const publicKey = '8gNz9DrywX', nonce = 1;
console.log(g.get(publicKey + ':' + nonce));