PasswordProtected

Password Protected Trait for Private Keys

author

Jim Wigginton terrafrost@php.net

package

Default

Methods

Sets the password

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()

Arguments

$password

string|boolean

Properties

Password

password :string|boolean
var

Type(s)

string|boolean