class Crypto

Crypto wrapper.

Properties

protected EncrypterInterface $adapter Crypto adapter.
protected Signer $signer Signer.

Methods

__construct(EncrypterInterface $adapter, Signer $signer)

Constructor.

string
encrypt(string $string)

Encrypts string.

false|string
decrypt(string $string)

Decrypts string.

Details

at line 38
__construct(EncrypterInterface $adapter, Signer $signer)

Constructor.

Parameters

EncrypterInterface $adapter Crypto adapter
Signer $signer signer instance

at line 51
string encrypt(string $string)

Encrypts string.

Parameters

string $string String to encrypt

Return Value

string

at line 62
false|string decrypt(string $string)

Decrypts string.

Parameters

string $string String to decrypt

Return Value

false|string