Skip to content

sagivo/dead-simple-crypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dead Simple Crypt

dead simple. fast. light

  • No need for heavy libraries. Using aes-256-cbc protocol.
  • Simple to use.
  • Customize it easily.
  • Only 2 methodes encrypt(string, optionalPass) and decrypt(string, optionalPass)

Get Started

Simply install via npm:

npm install dead-simple-crypt

Load it and you're ready to go!

var deadSimpleCrypt = require('dead-simple-crypt');

Examples

var plain = "I see dead people!";
var blob = deadSimpleCrypt.encrypt(plain); //your encrypted string
deadSimpleCrypt.decrypt(blob); //back to original string

or, with optional password:

var pass = 'some password';
var plain = "I see dead people!"; 
var blob = deadSimpleCrypt.encrypt(plain, pass); //your encrypted string
deadSimpleCrypt.decrypt(blob, pass); //back to original string

Disclosure

This is best for simple use needs. In case you need more complicate solution do your research before.

Contribute

Please do. Fork it, star it, share it and add your code to the project. Help others.

License

MIT

About

simply encrypt and decrypt things

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published