OXID eShop CE  6.2.0
OxidEsales\EshopCommunity\Internal\Domain\Authentication\Service\Argon2IPasswordHashService Class Reference
+ Inheritance diagram for OxidEsales\EshopCommunity\Internal\Domain\Authentication\Service\Argon2IPasswordHashService:
+ Collaboration diagram for OxidEsales\EshopCommunity\Internal\Domain\Authentication\Service\Argon2IPasswordHashService:

Public Member Functions

 __construct (PasswordPolicyInterface $passwordPolicy, int $memoryCost, int $timeCost, int $threads)
 
 hash (string $password)
 
 passwordNeedsRehash (string $passwordHash)
 

Private Member Functions

 getOptions ()
 

Private Attributes

 $passwordPolicy
 
 $memoryCost
 
 $timeCost
 
 $threads
 

Detailed Description

Hashes with the ARGON2I algorithm

Constructor & Destructor Documentation

◆ __construct()

OxidEsales\EshopCommunity\Internal\Domain\Authentication\Service\Argon2IPasswordHashService::__construct ( PasswordPolicyInterface  $passwordPolicy,
int  $memoryCost,
int  $timeCost,
int  $threads 
)
Parameters
PasswordPolicyInterface$passwordPolicy
int$memoryCost
int$timeCost
int$threads
Exceptions
UnavailablePasswordHashException

Member Function Documentation

◆ getOptions()

OxidEsales\EshopCommunity\Internal\Domain\Authentication\Service\Argon2IPasswordHashService::getOptions ( )
private
Returns
array

◆ hash()

OxidEsales\EshopCommunity\Internal\Domain\Authentication\Service\Argon2IPasswordHashService::hash ( string  $password)

Creates a password hash

Parameters
string$password
Exceptions
PasswordHashException
Returns
string

Implements OxidEsales\EshopCommunity\Internal\Domain\Authentication\Service\PasswordHashServiceInterface.

◆ passwordNeedsRehash()

OxidEsales\EshopCommunity\Internal\Domain\Authentication\Service\Argon2IPasswordHashService::passwordNeedsRehash ( string  $passwordHash)

Member Data Documentation

◆ $memoryCost

OxidEsales\EshopCommunity\Internal\Domain\Authentication\Service\Argon2IPasswordHashService::$memoryCost
private

◆ $passwordPolicy

OxidEsales\EshopCommunity\Internal\Domain\Authentication\Service\Argon2IPasswordHashService::$passwordPolicy
private

◆ $threads

OxidEsales\EshopCommunity\Internal\Domain\Authentication\Service\Argon2IPasswordHashService::$threads
private

◆ $timeCost

OxidEsales\EshopCommunity\Internal\Domain\Authentication\Service\Argon2IPasswordHashService::$timeCost
private

The documentation for this class was generated from the following file: