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.

string|bool
decrypt(string $string)

Decrypts string.

Details

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

Constructor.

Parameters

EncrypterInterface $adapter Crypto adapter
Signer $signer Signer instance.

at line 53
string encrypt(string $string)

Encrypts string.

Parameters

string $string String to encrypt

Return Value

string

at line 64
string|bool decrypt(string $string)

Decrypts string.

Parameters

string $string String to decrypt

Return Value

string|bool