2023-04-13 15:44:10 +00:00
|
|
|
/**
|
|
|
|
* Encrypt a string as needed
|
|
|
|
*
|
|
|
|
* @param string $string The string to encrypt
|
|
|
|
* @param string $key The encryption key
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
* @since 3.2.0
|
|
|
|
**/
|
|
|
|
public function encrypt(string $string, string $key): string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Decrypt a string as needed
|
|
|
|
*
|
|
|
|
* @param string $string The string to decrypt
|
|
|
|
* @param string $key The decryption key
|
|
|
|
*
|
2023-10-24 08:36:39 +00:00
|
|
|
* @return string|null
|
2023-04-13 15:44:10 +00:00
|
|
|
* @since 3.2.0
|
|
|
|
**/
|
2023-10-24 08:36:39 +00:00
|
|
|
public function decrypt(string $string, string $key): ?string;
|