PHP Interface Airship\Engine\Security\Migration\MigrationInterface

ファイルを表示 Open project: paragonie/airship

Public Methods

Method Description
getHashWithMetadata ( string $oldHash, EncryptionKey $passwordKey = null ) : array Use during imports to populate a table with metadata and a rehashed hash.
setPasswordKey ( EncryptionKey $passwordKey ) : self
validate ( HiddenString $password, HiddenString $pHash, array $migrationData ) : boolean Validate a user-provided password with user

Method Details

getHashWithMetadata() public method

Use during imports to populate a table with metadata and a rehashed hash.
public getHashWithMetadata ( string $oldHash, EncryptionKey $passwordKey = null ) : array
$oldHash string
$passwordKey ParagonIE\Halite\Symmetric\EncryptionKey
return array [HiddenString, array]

setPasswordKey() public method

public setPasswordKey ( EncryptionKey $passwordKey ) : self
$passwordKey ParagonIE\Halite\Symmetric\EncryptionKey
return self

validate() public method

Validate a user-provided password with user
public validate ( HiddenString $password, HiddenString $pHash, array $migrationData ) : boolean
$password Airship\Engine\Security\HiddenString
$pHash Airship\Engine\Security\HiddenString
$migrationData array
return boolean