lsj

1.1.7 • Public • Published

License: UCOP v3

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);

Dependencies (4)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i lsj

    Weekly Downloads

    2

    Version

    1.1.7

    License

    UCOP

    Unpacked Size

    4.32 kB

    Total Files

    4

    Last publish

    Collaborators

    • zombymediaic