You are here

public static function KeyWrapperInterface::encrypt in Lockr 7.3

Same name and namespace in other branches
  1. 7.2 vendor/lockr/lockr-client/src/KeyWrapper/KeyWrapperInterface.php \Lockr\KeyWrapper\KeyWrapperInterface::encrypt()

Encrypt the given plaintext.

Parameters

string $plaintext:

string|null $key:

Return value

array

5 methods override KeyWrapperInterface::encrypt()
LockrAes128CtrSha256KeyWrapper::encrypt in vendor/lockr/lockr/src/KeyWrapper/LockrAes128CtrSha256KeyWrapper.php
Encrypt the given plaintext.
LockrAes256CbcSha256KeyWrapper::encrypt in vendor/lockr/lockr/src/KeyWrapper/LockrAes256CbcSha256KeyWrapper.php
Encrypt the given plaintext.
LockrAes256CbcSha256RawKeyWrapper::encrypt in vendor/lockr/lockr/src/KeyWrapper/LockrAes256CbcSha256RawKeyWrapper.php
Encrypt the given plaintext.
LockrAesCbcKeyWrapper::encrypt in vendor/lockr/lockr/src/KeyWrapper/LockrAesCbcKeyWrapper.php
Encrypt the given plaintext.
MultiKeyWrapper::encrypt in vendor/lockr/lockr/src/KeyWrapper/MultiKeyWrapper.php
Encrypt the given plaintext.

File

vendor/lockr/lockr/src/KeyWrapper/KeyWrapperInterface.php, line 19

Class

KeyWrapperInterface

Namespace

Lockr\KeyWrapper

Code

public static function encrypt($plaintext, $key = null);