abstract public function AESPluginBase::encrypt in AES encryption 8.2
Parameters
string $data: Data to be encoded.
bool|string $key: Optional key to be used when encoding.
bool|string $cipher: Optional cipher to be used when encoding. If present, contain one of the following strings: rijndael-128, rijndael-192, rijndael-256
Return value
mixed encoded data.
2 methods override AESPluginBase::encrypt()
- Mcrypt::encrypt in src/
Plugin/ AES/ Mcrypt.php - Reverse the string.
- Reverse::encrypt in src/
Plugin/ AES/ Reverse.php - Reverse the string.
File
- src/
Plugin/ AESPluginBase.php, line 29
Class
- AESPluginBase
- Provides a base class for all cryptor plugins.
Namespace
Drupal\aes\PluginCode
public abstract function encrypt($data, $key = FALSE, $cipher = FALSE);