PHP 클래스 Webiny\Component\Crypt\Bridge\Crypt

상속: use trait Webiny\Component\StdLib\StdLibTrait
파일 보기 프로젝트 열기: Webiny/Framework 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

getInstance() 정적인 공개 메소드

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.
리턴 Webiny\Component\Crypt\Bridge\CryptInterface

getLibrary() 정적인 공개 메소드

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

setLibrary() 정적인 공개 메소드

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.