bVault-js is a type-safe, lightweight, zero-dependency cryptographic library for secure encryption and decryption in browser environments. It implements AES-GCM encryption with PBKDF2 key derivation, providing a simple API for data protection.
Features
AES-GCM 256-bit encryption
Password-based key derivation (PBKDF2 with 100 thousand iterations)
Automatic salt and IV generation
Built-in error handling for cryptographic operations
Works in browsers (using Web Crypto API)
Secure Local Storage Wrapper – store/retrieve data in localStorage securely with automatic encryption/decryption
Secure Session Storage Wrapper – store/retrieve data in sessionStorage securely with automatic encryption/decryption
Security Notes
Always use strong, unique passwords for encryption