PHP Interface Webiny\Component\Security\Token\CryptDrivers\CryptDriverInterface

显示文件 Open project: Webiny/Framework

Public Methods

Method Description
decrypt ( string $string, string $key ) : string Decrypts the given $string that was encrypted with the $key.
encrypt ( string $string, string $key ) : string Encrypts the given $string using the $key variable as encryption key.

Method Details

decrypt() public method

Decrypts the given $string that was encrypted with the $key.
public decrypt ( string $string, string $key ) : string
$string string Encrypted string.
$key string Key used for encryption.
return string Decrypted string.

encrypt() public method

Encrypts the given $string using the $key variable as encryption key.
public encrypt ( string $string, string $key ) : string
$string string Raw string that should be encrypted.
$key string Security key used for encryption.
return string Encrypted key.