secure_db 1.0.8
secure_db: ^1.0.8 copied to clipboard
A unified secure database package that provides encrypted storage using both Hive and SQLite with automatic encryption/decryption.
1.0.8 #
- SECURITY ENHANCEMENT: Upgraded to AES-256-GCM authenticated encryption
- Switched from AES-SIC (counter mode) to AES-GCM (Galois/Counter Mode) for AEAD (Authenticated Encryption with Associated Data)
- Now provides built-in integrity and authenticity verification in addition to confidentiality
- Protects against tampering, bit-flipping attacks, and unauthorized data modifications
- Industry-standard encryption mode for modern secure applications
- All 28 tests passing with new encryption mode
- Dependency Update: Updated
encryptpackage minimum version- Updated from ^5.0.1 to ^5.0.2 (minimum version for AES-GCM support)
- Ensures GCM mode is available in all installations
- Documentation: Enhanced security documentation
- Updated README with detailed explanation of GCM benefits
- Added authentication and tamper-protection information
- No Breaking Changes: API remains unchanged, existing data will need re-encryption for GCM benefits
1.0.7 #
- Version skipped due to early release
1.0.6 #
- SECURITY FIX: Fixed critical security vulnerability in fallback key generation
- Replaced weak
Random(hashCode)implementation with PBKDF2-like key derivation using 100,000 SHA-256 iterations - Fallback keys are now cryptographically strong and resistant to brute-force attacks
- Added warning logging when secure storage is unavailable and fallback mode activates
- Replaced weak
- Enhanced Security: Improved password-based key derivation (
deriveKeymethod)- Increased default iterations from 10,000 to 100,000 for stronger key derivation
- Added configurable iterations parameter for flexibility
- Better documentation on security properties
- Testing: Added comprehensive test suite for encryption service
- 26 new tests covering encryption, key generation, security properties, and edge cases
- Regression tests to prevent future security vulnerabilities
- No Breaking Changes: Drop-in security improvement with full backward compatibility
1.0.5 #
- Dependency Updates: Updated to latest compatible versions for better pub.dev scoring
- Updated
flutter_secure_storagefrom ^9.0.0 to ^10.0.0 - Updated
cryptofrom ^3.0.3 to ^3.0.7 - Updated
sqflite_common_ffifrom ^2.3.6 to ^2.4.0 - Updated
flutter_lintsfrom ^3.0.0 to ^6.0.0
- Updated
- Bug Fixes: Removed deprecated
encryptedSharedPreferencesparameter for Android (data automatically migrated) - Compatibility: Improved compatibility with latest Flutter SDK and dependencies
1.0.4 #
- Improved API: Enhanced API consistency with new instance-based access patterns.
- Dual Access Support: Added better support for both factory methods (SecureDB.hive()) and direct instance access (SecureHive.instance).
- Performance & Stability: Enhanced singleton implementation for both Hive and SQLite and removed debug print statements.
- Documentation Update: Comprehensive documentation with updated usage examples and guides.