public function EncryptionServiceInterface::decrypt in Encryption 8
Same name and namespace in other branches
- 2.x 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\encryptionCode
public function decrypt($value, $raw_input = FALSE);