encrypted-local-storage

0.1.5 • Public • Published

Contributors Forks Stargazers Issues MIT License LinkedIn


Logo

encrypted-local-storage

Simply use aes encrypted Local storage
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents
  1. About Project
  2. Built With
  3. Features
  4. Installation
  5. Usages
  6. Note
  7. Browser Support
  8. License

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.

(back to top)

Built With

(back to top)

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

(back to top)

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

(back to top)

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)

 

(back to top)

Note

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

(back to top)

Browser Support

Native support

  • Chrome
  • Safari
  • FireFox

(back to top)

License

MIT

Developed by Karunaaharan Bavaram

(back to top)

Copyright

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

(back to top)

Package Sidebar

Install

npm i encrypted-local-storage

Weekly Downloads

0

Version

0.1.5

License

MIT

Unpacked Size

32.9 kB

Total Files

5

Last publish

Collaborators

  • bavaram