Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 28 lines (17 sloc) 0.549 kb

obscuro

easy encrypted data serialization

Encrypts and serializes an object for transport.

Usage

var obscuro = require ('obscuro');

var secret = 'don\'t tell';

var obj = {};
obj.secret = 'Squeamish Ossifrage';

var encryptedSerialized = obscuro.serializeEncrypt(obj,secret);

    console.log(obj);
    console.log('encrypted, is: '+encryptedSerialized);
    console.log('decrypted, '+encryptedSerialized+' is:');

var decryptedObj = obscuro.deserializeEncrypted(encryptedSerialized, secret);

    console.log(decryptedObj);

Something went wrong with that request. Please try again.