Method | Description | |
---|---|---|
getInstance ( string $passwordAlgo, string $cipherMode, string $cipherBlock ) : Webiny\Component\Crypt\Bridge\CryptInterface | Create an instance of a crypt driver. | |
getLibrary ( ) : string | Get the name of bridge library which will be used as the driver. | |
setLibrary ( string $pathToClass ) | Change the default library used for the driver. |
static public getInstance ( string $passwordAlgo, string $cipherMode, string $cipherBlock ) : Webiny\Component\Crypt\Bridge\CryptInterface | ||
$passwordAlgo | string | Password hashing algorithm. |
$cipherMode | string | Cipher mode. |
$cipherBlock | string | Cipher block size. |
return | Webiny\Component\Crypt\Bridge\CryptInterface |
static public getLibrary ( ) : string | ||
return | string |
static public setLibrary ( string $pathToClass ) | ||
$pathToClass | string | Path to the new bridge class. The class must implement \Webiny\Component\Crypt\Bridge\CryptInterface. |