You are here

abstract public function AESPluginBase::decrypt in AES encryption 8.2

Parameters

string $data: Data to be decoded.

bool|string $key: Optional key to be used for decoding.

bool|string $cipher: Optional cipher to be used for decoding. If present, contain one of the following strings: rijndael-128, rijndael-192, rijndael-256

Return value

string decoded string.

2 methods override AESPluginBase::decrypt()
Mcrypt::decrypt in src/Plugin/AES/Mcrypt.php
Recover previously scrambled string.
Reverse::decrypt in src/Plugin/AES/Reverse.php
Recover previously scrambled string.

File

src/Plugin/AESPluginBase.php, line 42

Class

AESPluginBase
Provides a base class for all cryptor plugins.

Namespace

Drupal\aes\Plugin

Code

public abstract function decrypt($data, $key = FALSE, $cipher = FALSE);