Package Exports
- encrypted-local-storage
- encrypted-local-storage/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (encrypted-local-storage) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
encrypted-local-storage
Simply use aes encrypted Local storage
framework support
- React JS (no dependencies)
- Angular JS (no dependencies)
- Node JS (no dependencies)
- pure JavaScript (no dependencies)
Get started
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
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
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
- Opera
- Internet Explorer 9+
Support for Internet Explorer 7 and 8 with excanvas polyfill.
License
Developed by Karunaaharan Bavaram
Copyright
Copyright (c) 2022 Karunaaharan Bavaram, contributors. Released under the MIT licenses