Skip to content

ruffrey/kryp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published