Repository navigation
v1.1.0
Release Notes
🔐 Enhanced Security & Validation
- Comprehensive secret validation: Added empty secret detection, Base32 character validation, and proper regex-based format checking
- Timing attack prevention: Implemented
hash_equals()for secure TOTP code comparison to prevent timing-based attacks - Centralized message system: Introduced
MessageStorefor consistent error messages and a foundation for internationalization support - Improved error handling: Enhanced validation with specific error messages for different failure scenarios
⚡ Performance & Code Quality
- Optimized Base32 implementation: Complete rewrite using bit manipulation for 3x faster encoding/decoding
- Modern PHP standards: Added strict type declarations and updated to PHP 8.1+ features
- Enhanced test coverage: Comprehensive test suite with PHPUnit 10.5+ and improved edge case testing
- Automated code quality: PHP CS Fixer and Rector integration for consistent code style and modernization
🐳 Streamlined Docker Development
- Modern Docker setup: Complete rewrite using
serversideup/phpwith Nginx Unit for better performance - One-command startup: Simple
bash start-docker.shto get the development environment running - Container shell access: Easy access via
bash pkg-cli.shwith proper user permissions - Xdebug integration: Built-in debugging support for development workflow
📦 Dependency & Configuration Updates
- Dependabot integration: Automated dependency updates for security and maintenance
- Development tools: Improved configuration files for better developer experience
🚀 Getting Started
# Clone and start the development environment
git clone git@github.com:remotemerge/totp-php.git
cd totp-php
bash start-docker.sh
# Access container for development
bash pkg-cli.shThis release significantly enhances security, performance, and developer experience while maintaining backward compatibility.