React Secure Storage

JSON →
library 1.3.2 ·javascript
verified Jun 7, 2026

React Secure Storage (v1.3.2) is a wrapper around localStorage that encrypts stored data using a browser fingerprint and an optional user-provided secret key. It generates a unique encryption key per browser, ensuring data can only be decrypted in the same browser that encrypted it. Supports storing String, Object, Number, and Boolean without manual serialization. Uses a singleton pattern for in-memory caching. Works with React, Vite, and Next.js via environment variables. Lightweight and dependency-free. Compatible with TypeScript.