kolio-key

1.0.2 • Public • Published

Kolio Keys

Create Keys With Secret Value Inside!!!

(async() => {
  const koliokey = require('kolio-key')

  let mykey = await koliokey.encode('my string', 23)
  // This creates a new key with secrat val "my string" and have length of 23

  console.log(mykey)
  // expected to output you key

  console.log(
    await koliokey.decode(mykey)
    // this will decode and give you the secret val
  )
  // expected output: my string

  console.log(
    await koliokey.compare(mykey, 'my string')
    // this compares the value of the key and the string provided
  )
  // expected output: true
  
  return
})();

Provide custom mongodb url

By create new env variable with name MONGOURL

Thanks For Downloading :)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    2
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i kolio-key

Weekly Downloads

2

Version

1.0.2

License

ISC

Unpacked Size

15.6 kB

Total Files

12

Last publish

Collaborators

  • filipinoakoyoutube