darkindy / spring-password-utils
PHP utilities for encoding and validating passwords in the same way as Spring Security's StandardPasswordEncoder in Java.
Installs: 25
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=5.3.3
- symfony/polyfill-mbstring: 1.9
Requires (Dev)
- phpunit/phpunit: 4.8.35
This package is auto-updated.
Last update: 2024-04-21 01:03:21 UTC
README
PHP utilities for encoding and validating passwords in the same way as Spring Security's StandardPasswordEncoder in Java.
Features
- Encoding a password hash in the same way as Spring Security's StandardPasswordEncoder
- Validating a password against a hash generated from Java or by this library itself
Composer Installation
This is a PSR-4 autoloadable library. Please use Composer to add the library to your project:
{ "require": { "darkindy/spring-password-utils": "1.0.0" } }
Troubleshooting
In case you encounter the error message "Call to undefined function openssl_random_pseudo_bytes()" when encoding a password with an auto-generated salt, please enable openssl by uncommenting the following lines in your php.ini:
extension_dir="ext"
extension=php_openssl.dll