PHP Class Webiny\Component\Crypt\Bridge\Crypt

Inheritance: use trait Webiny\Component\StdLib\StdLibTrait
Show file Open project: Webiny/Framework Class Usage Examples

Public Methods

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.

Method Details

getInstance() static public method

Create an instance of a crypt 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

getLibrary() static public method

Get the name of bridge library which will be used as the driver.
static public getLibrary ( ) : string
return string

setLibrary() static public method

Change the default library used for the driver.
static public setLibrary ( string $pathToClass )
$pathToClass string Path to the new bridge class. The class must implement \Webiny\Component\Crypt\Bridge\CryptInterface.