https://github.com/ruffrey/kryp
Simple encode and decode encryption layer for strings in Node.js
https://github.com/ruffrey/kryp
Last synced: 12 months ago
JSON representation
Simple encode and decode encryption layer for strings in Node.js
- Host: GitHub
- URL: https://github.com/ruffrey/kryp
- Owner: ruffrey
- Created: 2013-06-18T15:09:45.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-06-19T23:57:20.000Z (almost 13 years ago)
- Last Synced: 2025-05-31T03:56:41.560Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 125 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
kryp
====
Simple encode and decode layer for Node.js
installation
====
`npm install kryp`
example
====
```javascript
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