Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Provides password hashing utilities

License

NotificationsYou must be signed in to change notification settings

symfony/password-hasher

Repository files navigation

The PasswordHasher component provides secure password hashing utilities.

Getting Started

composer require symfony/password-hasher
useSymfony\Component\PasswordHasher\Hasher\PasswordHasherFactory;// Configure different password hashers via the factory$factory =newPasswordHasherFactory(['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

About

Provides password hashing utilities

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors25

Languages


[8]ページ先頭

©2009-2025 Movatter.jp