openlss / func-bcrypt
Blowfish Crypt helpers for password hashing
Installs: 406
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/openlss/func-bcrypt
Requires
- php: >=5.3.2
Requires (Dev)
- openlss/core-boot: ~0.0.1
This package is not auto-updated.
Last update: 2025-10-11 20:17:22 UTC
README
Blowfish Crypt helper functions for password hashing
These functions are used to aid in bcrypt hashing paswords for a more secure password hashing option
BCrypt hashed passwords are stronger and have inline salting.
Usage
$crypted = bcrypt('password'); if(!bcrypt_check('password',$crypted)){ echo "Authorization Denied"; exit; }
Reference
(string) bseed($crypted='')
Returns a blowfish safe seed
(string) bcrypt($plaintext,$seed='')
Encrypts plain text into a blowfish hash. Pass $seed if this is an existing hash
(bool) bcrypt_check($plaintext,$crypted)
Checks a plaintext version against the hash