CipherSuiteInterface
in
Table of Contents
Methods
- decrypt() : string
- Decrypt a string
- encrypt() : string
- Encrypt a string
- getSuites() : array<string|int, mixed>
- Get a list of supported cipher suites.
Methods
decrypt()
Decrypt a string
public
decrypt(string $cipherText, array<string|int, mixed> $key) : string
Parameters
- $cipherText : string
-
Encrypted content as a binary string. Depending on the suite, this may include related values (eg HMAC + IV).
- $key : array<string|int, mixed>
Return values
string —Decrypted string
encrypt()
Encrypt a string
public
encrypt(string $plainText, array<string|int, mixed> $key) : string
Parameters
- $plainText : string
- $key : array<string|int, mixed>
Return values
string —Encrypted content as a binary string. Depending on the suite, this may include related values (eg HMAC + IV).
getSuites()
Get a list of supported cipher suites.
public
getSuites() : array<string|int, mixed>
Return values
array<string|int, mixed> —Ex: ['aes-cbc', 'aes-bbc', 'aes-pbs']