jwt-gen-key

1.0.0 • Public • Published

JWT-GEN-KEY

| Zero dependency, lightweight, and fast Node js library for JWT public & private key generation.

Installation

npm install jwt-gen-key

Usage

import generateKey from "jwt-gen-key";

Example

import generateKey from "jwt-gen-key";

const publicKey = generateKey(16);
const privateKey = generateKey(20);

console.log(publicKey); //32 bit string -> 8da266c9804430539c8840d940e58c7a
console.log(privateKey); //40 bit string ->  e3db2c6c9b97f5c4bb9a63745abe33535e04899a

LICENSE

jwt-gen-key is licensed under MIT LICENSE. see LICENSE for more details.

Package Sidebar

Install

npm i jwt-gen-key

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

3.2 kB

Total Files

4

Last publish

Collaborators

  • santhoshmani