public function EncryptServiceInterface::decrypt in Encrypt 8.3
Main decrypt function.
Parameters
string $text: The encrypted text to decrypt.
\Drupal\encrypt\EncryptionProfileInterface $encryption_profile: The encryption profile entity.
Return value
string The decrypted plain string.
Throws
\Drupal\encrypt\Exception\EncryptException Can throw an EncryptException.
\Drupal\encrypt\Exception\EncryptionMethodCanNotDecryptException Thrown when method can not decrypt (i.e. use a public key).
1 method overrides EncryptServiceInterface::decrypt()
- EncryptService::decrypt in src/
EncryptService.php - Main decrypt function.
File
- src/
EncryptServiceInterface.php, line 55
Class
- EncryptServiceInterface
- Class EncryptService.
Namespace
Drupal\encryptCode
public function decrypt($text, EncryptionProfileInterface $encryption_profile);