Skip to content

Instantly share code, notes, and snippets.

@rickhernandezio
Created January 22, 2018 01:02
Show Gist options
  • Save rickhernandezio/d74f13278ff998c35be607e0ce009d39 to your computer and use it in GitHub Desktop.
Save rickhernandezio/d74f13278ff998c35be607e0ce009d39 to your computer and use it in GitHub Desktop.
Encrypt and Decrypt Objects.js
const Encrypted = '36d435ec6268244a209c1d3b5b8d12c7838f604fc907519e8e75583f1c12902f62e5da4905bea381326b893fc750c9ca913bd6d8cd9cdb13ba541329399100989ac22dfa10ab2cf9784ee8183c55fa96'
const Decrypted = mailPro.decrypt(user);
// Results -> { username: 'brandy19', age: 23, sex: 'female', balance: 3339.03 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment