lsj
v1.1.7
Published
Encryption decryption and hash generation is now way to easy
Maintainers
Readme
Current features:
- encrypting strings
- decrypting strings
- generating a md5 hash
Setup for the project
Download the module with the command: npm install --save lsj
Import the module with:
const lsj = require('lsj');encryption method usage
var text = "The text you want to use";
var key = "Enter a random generated key with a length of 16 characters";
var encText = lsj.encrypt(text, key);decryption method usage
var encText = "The text you want to encrypt";
var key = "The key used to encrypt the string";
var text = lsj.decrypt(encText, key);MD5-hash generator usage
var text = "The text you want to use";
var md5 = lsj.md5(text);SHA256-hash generator usage
var text = "The text you want to use";
var hash = lsj.createSHA256(text);