You are here

public function EncryptServiceInterface::encrypt in Encrypt 8.3

Main encrypt function.

Parameters

string $text: The plain text to encrypt.

\Drupal\encrypt\EncryptionProfileInterface $encryption_profile: The encryption profile entity.

Return value

string The encrypted string.

Throws

\Drupal\encrypt\Exception\EncryptException Can throw an EncryptException.

1 method overrides EncryptServiceInterface::encrypt()
EncryptService::encrypt in src/EncryptService.php
Main encrypt function.

File

src/EncryptServiceInterface.php, line 37

Class

EncryptServiceInterface
Class EncryptService.

Namespace

Drupal\encrypt

Code

public function encrypt($text, EncryptionProfileInterface $encryption_profile);