password_engine 1.0.0
password_engine: ^1.0.0 copied to clipboard
A comprehensive and extensible password generation library for Dart and Flutter
Changelog #
1.0.0 #
- Initial release of
password_engine. - Core Features:
- Flexible password generation with configurable character sets (uppercase, lowercase, numbers, special characters) and length (default to 16 characters).
- Advanced architecture built around the Strategy pattern, allowing injection of custom generation algorithms.
- Fluent
PasswordGeneratorConfigBuilderfor strict, safe, and immutable configuration management.
- Security & Validation:
- Built-in
PasswordStrengthEstimatorusing pool-based entropy estimation (L × log₂(N)) to evaluate password strength. - Pluggable
IPasswordNormalizerinterface with a passthrough default — inject a custom normalizer for Unicode normalization or whitespace handling. PasswordValidatorandConfigAwarePasswordValidatorto enforce rigorous rules (e.g., minimum 16 characters, 4 disjoint types).- Advanced
PolicyAwarePasswordStrategyensuring the outcome explicitly respects numeric thresholds (e.g., "at least 2 letters, 3 symbols").
- Built-in
- Interactive Feedback:
estimateFeedback()method coupled withPasswordFeedbackContextfor UI-layer password meters and suggestions.
- Configuration:
- Comprehensive
PasswordGeneratorConfigandCharacterSetProfile. - Configurable exclusion of ambiguous characters.
- Comprehensive