Security Patterns: Encrypted Client-Side Key Storage
CommunityEncrypt and protect API keys in the browser.
Authordzhechko
Version1.0.0
Installs0
System Documentation
What problem does it solve?
API keys exposed in the browser pose a risk; this pattern encrypts keys client-side so plaintext keys are not stored or sent insecurely.
Core Features & Use Cases
- Client-side encryption of API keys using AES-GCM 256-bit via the Web Crypto API.
- On-demand decryption in memory with per-request proxying and an auto-lock mechanism after 30 minutes.
- BYOK workflow to encrypt user keys and decrypt them only when needed.
Quick Start
Derive a master key from a password, encrypt the API key with AES-GCM, and store the ciphertext and IV in IndexedDB, then decrypt per-request as needed.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: Security Patterns: Encrypted Client-Side Key Storage Download link: https://github.com/dzhechko/2026-jan-pu-opus-clone-01/archive/main.zip#security-patterns-encrypted-client-side-key-storage Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.