Documentation

PasswordProtected

Password Protected Trait for Private Keys

Tags
author

Jim Wigginton terrafrost@php.net

access

public

Table of Contents

Properties

$password  : string|bool
Password

Methods

withPassword()  : mixed
Sets the password

Properties

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
Tags
see
self::createKey()
see
self::load()
access

public


        
On this page

Search results