Skip to content

linuxgemini/basic256.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

basic256.js

Build Status

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

Slightly modified the work of Levi Gross.

Usage without downloading from NPM

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

And do this on your terminalif you are not root:

    npm install

If you are running as root, do this:

    npm install --unsafe-perm

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