\CryptoManana\Core\Traits\MessageEncryptionSecretKeyTrait

Trait SecretKeyTrait - Reusable implementation of `SecretKeyInterface`.

Summary

Methods
Properties
Constants
setSecretKey()
getSecretKey()
$$key
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$$key

$$key : string

The encryption/decryption secret key property storage.

Type

string

Methods

setSecretKey()

setSecretKey(string  $key) : $this

Setter for the secret key string property.

Parameters

string $key

The encryption key string.

Throws

\Exception

Validation errors.

Returns

$this —

The symmetric encryption algorithm object.

getSecretKey()

getSecretKey() : string

Getter for the secret key string property.

Returns

string —

The encryption key string.