HashInterface
- Full name: \Zemit\Mvc\Model\Interfaces\HashInterface
Methods
hash
public hash(string $string, ?string $salt = null, ?string $workFactor = null): string
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| $string | string | |
| $salt | ?string | |
| $workFactor | ?string | 
checkHash
public checkHash(?string $hash = null, ?string $string = null, int $maxPassLength): bool
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| $hash | ?string | |
| $string | ?string | |
| $maxPassLength | int |