You are here

public function EncryptionServiceInterface::decrypt in Encryption 2.x

Same name and namespace in other branches
  1. 8 src/EncryptionServiceInterface.php \Drupal\encryption\EncryptionServiceInterface::decrypt()

Decrypt a value using the encryption key from settings.php.

Parameters

string $value: An encrypted string.

bool $raw_input: Should be set to TRUE if the input value is not a base64 encoded/url safe string (Defaults to FALSE).

Return value

string|null The decrypted value or null if decryption fails.

File

src/EncryptionServiceInterface.php, line 39

Class

EncryptionServiceInterface
Interface EncryptionServiceInterface.

Namespace

Drupal\encryption

Code

public function decrypt($value, $raw_input = FALSE);