Back to Projects
bVault.js
LibrariesFeatured

bVault.js

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
  • Safely store IVs and salts with encrypted data
  • Never hardcode passwords in source code
  • Consider rotating encryption keys periodically
  • Use HTTPS when transmitting encrypted data
Stack:TypeScriptGoRust
Tags:#Security#Cryptography#Browser