django-cryptovault
v0.2.0
Published
Enterprise-grade password hashing with Django compatibility, enhanced security, and performance optimizations
Maintainers
Readme
🔐 DjangoCryptoVault
Enterprise-grade password hashing with Django compatibility, enhanced security, and performance optimizations
Install
npm i DjangoCryptoVault✨ Features
- 🚀 Multiple Algorithms: PBKDF2, bcrypt, Argon2 support
- 🛡️ Enterprise Security: Pepper, constant-time comparison, secure defaults
- ⚡ Performance Optimized: Caching, sync/async options, benchmarking
- 📦 Django Compatible: Full compatibility with Django auth_user table
- 🔍 Password Strength Validation: OWASP/NIST compliant
- 📊 Security Audit: Comprehensive password analysis
- 🎯 TypeScript First: Full type safety and IntelliSense support
- 🧪 Battle Tested: 100% test coverage, production-ready
import DjangoCryptoVault from 'DjangoCryptoVault';
const vault = new DjangoCryptoVault({
iterations: 600000, // Django 5.0+ recommended
enableCache: true, // Enable verification caching
});
// Hash a password
const hash = await vault.hash('SecureP@ss123!');
console.log('Hash:', hash);
// pbkdf2_sha256$600000$abc123...$def456...
// Verify a password
const isValid = await vault.verify('SecureP@ss123!', hash);
console.log('Valid:', isValid); // true