BaseCrypt
final class BaseCrypt (View source)
Constants
| private ALGO |
|
| private COST |
|
Methods
getSalt()
string
generateRandomPassword(int $length = 16)
string
encPassword(string $password, int|null $cost = null)
string
checkHash(string $hash, string $password)
bool
needsRehash(string $hash)
bool
Details
getSalt
static string
getSalt()
No description
generateRandomPassword
static string
generateRandomPassword(int $length = 16)
No description
encPassword
static string
encPassword(string $password, int|null $cost = null)
No description
checkHash
static bool
checkHash(string $hash, string $password)
No description
needsRehash
static bool
needsRehash(string $hash)
No description