Download the PHP package loopire/password-helper without Composer
On this page you can find all versions of the php package loopire/password-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download loopire/password-helper
More information about loopire/password-helper
Files in loopire/password-helper
Package password-helper
Short Description Custom password hasing and comparing password using custom secret key
License MIT
Informations about the package password-helper
๐ loopire-password-hashing-php-package
A lightweight PHP package for secure password hashing using SHA-256 with multiple iterations and a custom secret key. Ideal for projects that require a simple, consistent, and dependency-free way to hash and verify passwords.
๐ฆ Installation
Clone or download the repository and include the class in your PHP project:
๐ Features
- ๐ Configurable iteration count for added security (default: 500)
- ๐ SHA-256 based hashing with secret key
- โ๏ธ Secure password comparison
- ๐งฑ Dependency-free
๐งช Usage
โ Hash a Password
๐ Compare Passwords
๐ง Behind the Scenes
The PasswordHelper
class works by combining your password and secret key, then running it through the SHA-256 hashing algorithm 500 times by default:
This helps to strengthen the hash and reduce the risk of brute-force attacks.
โ ๏ธ Security Notice
While this custom method adds basic security, it is highly recommended to use PHP's built-in
password_hash()
andpassword_verify()
functions for production environments. These are battle-tested and offer protections against common security vulnerabilities including timing attacks.
๐ License
MIT License
๐ Contributing
Pull requests are welcome! If you have suggestions or improvements, feel free to contribute.
๐จโ๐ป Author
Developed by [Arsalan Ahmed].
For any questions or support, reach out via GitHub Issues.
https://github.com/Arsalan-Ahmed-Solangi