kolio-key
v1.0.2
Published
Encode and decode keys from koliokey
Downloads
4
Readme
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