PasswordProtected
Password Protected Trait for Private Keys
Tags
Table of Contents
Properties
- $password : string|bool
- Password
Methods
- withPassword() : mixed
- Sets the password
Properties
$password
Password
private
string|bool
$password
= false
Methods
withPassword()
Sets the password
public
withPassword([string|bool $password = false ]) : mixed
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.
Parameters
- $password : string|bool = false