Key enhancements in this bcrypt implementation
mainThis library is a refactored and optimized version of jBcrypt with several key improvements for developers:
- Expanded Version Support: Supports
$2a$,$2b$,$2x$, and$2y$versions, including support for custom versions. - Higher Cost Factor: Allows a cost factor up to
31(whereasjBcryptis limited to30). - Improved Security/Memory Management: Uses only
byte[]andchar[]arrays, which can be wiped from memory after use to reduce the window for memory-scraping attacks. - Customization: Provides APIs to use your own salt or a custom
SecureRandominstance for salt generation. - Long Password Handling: Customizable handling for passwords exceeding the standard 72-byte limit.
- Raw Hash Access: Provides easy methods to retrieve the raw hash components.