Skip to content

linuxgemini/basic256.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

basic256.js

A basic encryption/decryption script/API for resting data for Node.js users.

Slightly modified the work of Levi Gross.

Usage

Gather basic256.js first, copy all files inside to your project folder/direcory.

And do this (If you have a Linux enviroment):

    ./runMeFirst.sh

Then make your script connected. Example:

    var crypter = require("./basic256.js");
    
    var blob = crypter.enc.run("FOO"); // This encrypts the string "FOO".
    console.log(blob); // This will show the encrypted string.
    
    var unblob = crypter.dec.run(blob); // This decrypts the encrypted string.
    console.log(unblob); // This will show the decrypted string. (Which in this case, it is "FOO")

About

A basic encryption/decryption script/API for resting data for Node.js users.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published