Метод | Описание | |
---|---|---|
createFromKey ( Defuse\Crypto\Key $key ) : |
Initializes an instance of KeyOrPassword from a key. | |
createFromPassword ( string $password ) : |
Initializes an instance of KeyOrPassword from a password. | |
deriveKeys ( string $salt ) : Defuse\Crypto\DerivedKeys | Derives authentication and encryption keys from the secret, using a slow key derivation function if the secret is a password. |
Метод | Описание | |
---|---|---|
__construct ( integer $secret_type, mixed $secret ) | Constructor for KeyOrPassword. |
public static createFromKey ( Defuse\Crypto\Key $key ) : |
||
$key | Defuse\Crypto\Key | |
Результат |
public static createFromPassword ( string $password ) : |
||
$password | string | |
Результат |
public deriveKeys ( string $salt ) : Defuse\Crypto\DerivedKeys | ||
$salt | string | |
Результат | Defuse\Crypto\DerivedKeys |