secure-storage-web

0.1.0 • Public • Published

secure-storage-web

A secure storage for web application

npm MIT

Demo

You can see the demo here

Installation

npm install secure-storage-web --save

or

yarn add secure-storage-web --save

Usage

In Web application

In side index.html

<script src="node_modules/secure-storage-web/dist/secure-storage-web.js"></script>

In js file where you want to use this package

var store = new SecureStorageWeb({ name: 'test', type: 'localStorage', secretKey: 'test' });

store.setItem('key1', { a: 12345 });
store.setItem('key2', { a: 6789 });

In Vue application

In your main.js file

import SecureStorageWeb from 'secure-storage-web';

var store = new SecureStorageWeb({ name: 'test', type: 'localStorage', secretKey: 'test', secure: true });
Vue.prototype.store = store;

In components where you want to use this package

this.store.setItem('key1', { a: 12345 });

this.store.setItem('key2', { a: 6789 });

npm package

You can find npm registry link here

License

MIT

Release Notes

v0.0.1

  • Initial version with basic storage with encryption and decryption

v0.0.2

  • Initial version with basic storage with encryption and decryption
  • Added demo for web application

v0.0.3

  • Added optional feature to enable or disabled encryption and decryption
  • Added vue.js app demo

Contact

Package Sidebar

Install

npm i secure-storage-web

Weekly Downloads

3

Version

0.1.0

License

MIT

Unpacked Size

3.24 MB

Total Files

221

Last publish

Collaborators

  • rajeshwarpatlolla