Argon2iPasswordEncoder
class Argon2iPasswordEncoder extends BasePasswordEncoder implements SelfSaltingEncoderInterface
Argon2iPasswordEncoder uses the Argon2i hashing algorithm.
Constants
| MAX_PASSWORD_LENGTH |
Methods
| static | isSupported() | |
| string | encodePassword(string $raw, string $salt) Encodes the raw password. | |
| bool | isPasswordValid(string $encoded, string $raw, string $salt) Checks a raw password against an encoded password. |
Details
static isSupported()
string encodePassword(string $raw, string $salt)
Encodes the raw password.
Parameters
| string | $raw | The password to encode |
| string | $salt | The salt |
Return Value
| string | The encoded password |
bool isPasswordValid(string $encoded, string $raw, string $salt)
Checks a raw password against an encoded password.
Parameters
| string | $encoded | An encoded password |
| string | $raw | A raw password |
| string | $salt | The salt |
Return Value
| bool | true if the password is valid, false otherwise |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Security/Core/Encoder/Argon2iPasswordEncoder.html