1<?
php declare(strict_types=1);
26 public function isPasswordValid(
string $encoded,
string $raw,
string $salt) : bool;
An exception for terminatinating execution or to throw for unit testing.
isPasswordValid(string $encoded, string $raw, string $salt)
Checks a raw password against an encoded password.
encodePassword(string $raw, string $salt)
Encodes the raw password.
isSupportedByRuntime()
Returns whether or not the encoder is supported by the runtime (PHP, HHVM, ...)
getName()
Returns a unique name/id of the concrete password encoder.
requiresSalt()
Returns whether or not the encoder requires a salt.
requiresReencoding(string $encoded)
Returns whether or not the a encoded password needs to be re-encoded.