1.0.2 • Published 5 years ago

securitykey v1.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

securityKey

This is a node js version for generate a security key which matches the following rules:

  • the max length is 32, can specify min length and max length
  • the key's initial characters are from a random substring of a guid
  • the random (1-5) bits of the key will be replaced by random special characters from "!@#$%^&*()_+{}|~`';:-=[]/?"

Install

npm i securitykey

How to use

var sk=require('securitykey')
var key=sk(10,20);
console.log(key)