1.3.0 • Published 3 years ago

@jmrl23/g v1.3.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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)

1.3.0

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago