New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hamper

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hamper

MoNoApps Crypto Pill

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

hamper

Crypto tool for Javascript Objects

install

npm install hamper

how it works?

Implements 'crypto' module with 'aes256' method. Keeps properties for string, number, boolean and null. Just think in a way to send a message in a bottle but encapsulated into an Ink object. Ink object knows how to return the hidden text. Hamper uses JSON.stringify for 'object' and 'array'.

why to use this package?

  • When you have a text and you want to keep it secret.
  • To send data between servers over http.
  • To crypt your JSON database.

what is the security level?

Please read crypto documentation: http://nodejs.org/api/crypto.html

usage

var Hamper = require('hamper').Hamper;
var my_key = "my precious key";
...
var my_crypt_function = function(){
  //One instance per task
  var roller = new Hamper(my_key);
  var hide_object = roller.Roll({name: "Hamper", work: "crypt"});
  return hide_object;
}

var my_decrypt_function = function(){
  //One instance per task
  var viewer = new Hamper(key);
  var show_object   = viewer.Show(roll);
  return show_object;
}

sample ouputs

{"key" :"value"}
"7f4eee3c70cb5ed71e0cb08911edb2b3"

test

mocha

Keywords

FAQs

Package last updated on 04 Nov 2014

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc