encrypt-storage

JSON →
library 2.14.7 ·javascript
verified Jun 7, 2026

A wrapper for native browser Storage (localStorage/sessionStorage) that encrypts data using crypto-js. Current stable version is 2.14.7, released frequently (multiple minor versions per month). It automatically encrypts and decrypts values, supports multiple storage instances, and allows configuration of encryption algorithm, prefix, and state management hooks. Unlike simple base64 encoding libraries, encrypt-storage uses AES encryption with a user-provided secret key, making it harder for casual users to read data from the console. However, as noted in the docs, nothing on the frontend is truly secure as the key is exposed. Ships TypeScript types. This is the v2 line with breaking changes from v1.