You are here

public function EncryptionInterface::encrypt in Ubercart 8.4

Encrypts plaintext.

Parameters

string $key: Key used for encryption.

string $plaintext: Text string to be encrypted.

int $sourcelen: Minimum $plaintext length. Plaintext which is shorter than $sourcelen will be padded by appending spaces.

Return value

string Cyphertext. String containing encrypted text.

2 methods override EncryptionInterface::encrypt()
MarstonEncryption::encrypt in uc_store/src/MarstonEncryption.php
Encrypts plaintext.
OpenSSLEncryption::encrypt in uc_store/src/OpenSSLEncryption.php
Encrypts plaintext.

File

uc_store/src/EncryptionInterface.php, line 24

Class

EncryptionInterface
Provides common interface for encryption methods.

Namespace

Drupal\uc_store

Code

public function encrypt($key, $plaintext, $sourcelen);