UNPKG

securitykey

Version:

A package to generate variable length security key

17 lines (13 loc) 473 B
# 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) ```