⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.45
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
shopware
/
vendor
/
symfony
/
password-hasher
/
View File Name :
README.md
PasswordHasher Component ======================== The PasswordHasher component provides secure password hashing utilities. Getting Started --------------- ``` $ composer require symfony/password-hasher ``` ```php use Symfony\Component\PasswordHasher\Hasher\PasswordHasherFactory; // Configure different password hashers via the factory $factory = new PasswordHasherFactory([ 'common' => ['algorithm' => 'bcrypt'], 'memory-hard' => ['algorithm' => 'sodium'], ]); // Retrieve the right password hasher by its name $passwordHasher = $factory->getPasswordHasher('common'); // Hash a plain password $hash = $passwordHasher->hash('plain'); // returns a bcrypt hash // Verify that a given plain password matches the hash $passwordHasher->verify($hash, 'wrong'); // returns false $passwordHasher->verify($hash, 'plain'); // returns true (valid) ``` Resources --------- * [Documentation](https://symfony.com/doc/current/security.html#c-hashing-passwords) * [Contributing](https://symfony.com/doc/current/contributing/index.html) * [Report issues](https://github.com/symfony/symfony/issues) and [send Pull Requests](https://github.com/symfony/symfony/pulls) in the [main Symfony repository](https://github.com/symfony/symfony)