Socket
Socket
Sign inDemoInstall

tiny-data-safe

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    tiny-data-safe

Store data in safe and prevent them from being accessed without the valid key.


Version published
Maintainers
1
Install size
19.6 kB
Created

Readme

Source

Tiny Data Save

Store data in safe and prevent them from being accessed without the valid key.

API

Initialize safe instance

var tds = new TinyDataSafe();

Store data

var key = tds.add('data');

Create or replace data by key

tds.set(key, 'other data');

Get data

var data = tds.get(key);

Remove data from safe

tds.rid(key);

The idea behind

The key is an plain object and therefor not guessable like a string. Once stored data using an key object, it can only be retrieved by the same key. If the object key is not available, then there is no way to access the data inside the safe. Even if the safe instance itself is available public.

Keywords

FAQs

Last updated on 26 Apr 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc