1.3.0 • Published 3 years ago
@jmrl23/g v1.3.0
G
A very small module that can provide
- unique id generation
- encryption
- decryption
Usage
initialize
const G = require('@jmrl23/g')
creating instance
const g = new G()
you may also provide a set of unique ids so it has no chance of duplication
const g = new G(arrayOfIds)
methods
generate id
g.genID(length: number, save: boolean = true)
lock / encrypt
g.lock(input: string)
unlock / decrypt
g.unlock(value: string, key: string)