Encrypt Storage is a lightweight library for encrypting client-side storage (localStorage and sessionStorage) using AES symmetric encryption. Version 1.0.16 is the most recent stable release, with slow release cadence. It simplifies securing sensitive data in the browser with a minimal API. Compared to alternatives like crypto-js or browser-native crypto, it provides a dedicated high-level interface for storage encryption with TypeScript support. It is actively maintained.
npm install storage-encryptionNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates instantiation with secret key and storage type, encryption, decryption, and removal of data.
Use exactly 'localStorage' or 'sessionStorage' (case-sensitive).
Use import { EncryptStorage } from 'storage-encryption'.Ensure data is JSON-serializable before encrypting.
Ensure package is installed and types are included (package ships types). Use import { EncryptStorage } from 'storage-encryption'.Use import { EncryptStorage } from 'storage-encryption'.Use a library like flatted for circular references or ensure data is plain JSON.
No dependency data recorded yet.