New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

object_cryptor

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object_cryptor

Object encryptor decryptor using aes192. It converts any object to a base64 encrypted string, and the oposite. Objects are first converted to JSON, don't expect functions to be converted.

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

Object encryptor decryptor using aes192. It converts any object to a base64 encrypted string, and the oposite from an encrypted base64 string to an object. Note that objects are first converted to JSON, don't expect functions to be converted.

Example:

c=require('object_cryptor');
c1=c(''abcdefghijklmnopqrstuvxyz');
var obj = {
  a: 'a',
  'one': 1,
  'sub': {
    'two': 2,
    'three': 'three'
  }
}
c1.encrypt(obj);
// 'VZE/AoEbgIzaOAKeBTp5523SfXKEGchfw1dLHTzs2dJRz9u4DxfICGfpxqaRwgc/WsBZj4igPHdxF1BTlsS+Vg=='

c1.decrypt('VZE/AoEbgIzaOAKeBTp5523SfXKEGchfw1dLHTzs2dJRz9u4DxfICGfpxqaRwgc/WsBZj4igPHdxF1BTlsS+Vg==')
// { a: 'a', one: 1, sub: { two: 2, three: 'three' } }

FAQs

Package last updated on 13 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts