Property | Type | Description | |
---|---|---|---|
$workFactor | integer | The higher the work factor the more computationally expensive it is to encode and validate passwords. So it makes your passwords harder to crack, but it can also be a burden on your own server. |
Method | Description | |
---|---|---|
encode ( string $password ) : string | Encode a plain text password. |
Method | Description | |
---|---|---|
generateSalt ( ) : string | Generates a random salt. | |
getRandomBytes ( integer $count = 16 ) : boolean | string | Gets a number of random bytes |
protected generateSalt ( ) : string | ||
return | string | the generated salt |
public int $workFactor | ||
return | integer |