0.1.5 • Published 2 years ago

encrypted-local-storage v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Contributors Forks Stargazers Issues MIT License LinkedIn

About Project

This is fully secure local storage with AES Encryption. You can store encrypted local storage. This is specially you can use unlimited length key and store unlimited length of string value in local storage. Encrypt Json array also storable. It's have default key value and you can change own key value to store.

Built With

Features

  • AES-unlimited encryption local storage service without key
  • AES-unlimited decryption local storage service without key
  • AES-unlimited encryption local storage service with key
  • AES-unlimited decryption local storage service with key
  • well secure AES Encryption
  • You can store string array

Installation

This is a Node.js module available through the npm registry.

Before installing, download and install Node.js. Node.js 0.10 or higher is required.

Installation is done using the npm install command:

Using npm:

$ npm i encrypted-local-storage

Using yarn:

$ yarn add encrypted-local-storage

Usage

import LocalStorageService from "encrypted-local-storage";

//WithoutKey

LocalStorageService.setItem("userName", "Bavaram"); //set Local storage  (key,value)
LocalStorageService.getItem("userName"); //get Local storage (key)


//WithKey
// Note: secretKey can be unlimited letters

LocalStorageService.setItem("userName", "Bavaram","passCode"); //set Local storage  (key,value,encrypt_key)
LocalStorageService.getItem("userName","passCode"); //get Local storage (key,encrypt_key)

 

Note

LocalStorageService.getItem() //=>returns  value string
// (If encrypted key is wrong => "")
// (Local storage is not available   => ")

Browser Support

Native support

  • Chrome
  • Safari
  • FireFox

License

MIT

Developed by Karunaaharan Bavaram

Copyright

Copyright (c) 2022 Karunaaharan Bavaram, contributors. Released under the MIT, GPL licenses