Password Protected Trait for Private Keys
author | Jim Wigginton terrafrost@php.net |
---|---|
package | Default |
withPassword(string|boolean $password = false)
Private keys can be encrypted with a password. To unset the password, pass in the empty string or false. Or rather, pass in $password such that empty($password) && !is_string($password) is true.
see | self::createKey()self::load() |
---|---|
string|boolean
password :string|boolean
var |
---|
string|boolean