cg-bcrypt
v1.0.44
Published
A small library that supports encrypt and decrypt operations
Downloads
6
Readme
Simply use this package for Encryption and Decryption of strings or text
A small library that supports encrypt and decrypt operations
Installation
npm install cg-bcrypt
Usage1
var { encrypt, decrypt } = require("cg-bcrypt");
var encrypted_string = encrypt("a", "b", "hello");
console.log(encrypted_string);
var decrypted_string = decrypt("a", "b", encrypted_string);
console.log(decrypted_string);
Usage2
var cgbcrypt= require("cg-bcrypt");
var encrypted_string = cgbcrypt.encrypt("a", "b", "hello");
console.log(encrypted_string);
var decrypted_string = cgbcrypt.decrypt("a", "b", encrypted_string);
console.log(decrypted_string);