public function Reverse::encrypt in AES encryption 8.2
Reverse the string.
Overrides AESPluginBase::encrypt
File
- src/
Plugin/ AES/ Reverse.php, line 39
Class
- Reverse
- Sample cryptor plugin. Does not really encrypt a string but just doing minor scrambling.
Namespace
Drupal\aes\Plugin\AESCode
public function encrypt($data, $key = FALSE, $cipher = FALSE) {
return self::SIGNATURE . strrev($data);
}