\CryptoManana\Core\Interfaces\ContainersDigitalEnvelopeInterface

Interface DigitalEnvelopeInterface - Interface specification for digital envelope manipulations.

Summary

Methods
Constants
sealEnvelope()
openEnvelope()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

sealEnvelope()

sealEnvelope(string  $plainData) : \CryptoManana\DataStructures\EnvelopeData

Seals the envelope with the secured information inside.

Parameters

string $plainData

The plain message information.

Throws

\Exception

Validation errors.

Returns

\CryptoManana\DataStructures\EnvelopeData

The sealed envelope object.

openEnvelope()

openEnvelope(\CryptoManana\DataStructures\EnvelopeData  $envelopeData) : string

Opens the envelope and extracts secured information from it.

Parameters

\CryptoManana\DataStructures\EnvelopeData $envelopeData

The sealed envelope object.

Throws

\Exception

Validation errors.

Returns

string —

The plain message information.