Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Simple encode and decode encryption layer for strings in Node.js

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

kryp

Simple encode and decode layer for Node.js

installation

npm install kryp

example

  var Kryp = require('kryp');  // takes options object (optional) 

  var kryp = new Kryp({
        algorithm = 'AES-256-CFB' // Encryption algorithm
      , key = 'secretKey' // Encryption key
      , from = 'utf8' // Original encoding
      , to = 'hex' // Conversion encoding
  });


  var some_string = "I need to be encrypted!!";

  var encrypted_string = kryp.encode(some_string);

  var decoded_string = kryp.decode(encrypted_string);

license

MIT

Something went wrong with that request. Please try again.