src/Library/Signer.php
public function sealContentWithRSA($content)
    {
        $key = $this->getCertificateData();
        $encData = null;
        $envKeys = null;
        try {
            $result = openssl_seal($content, $encData, $envKeys, [$key]);
            if ($result === false) {
                throw new Exception();
            }
        } catch (Exception $exception) {
            $this->throwExceptionOpenssl(
                "Error while sealing data!",
                self::ERROR_ENCRYPT_DATA,
                $exception
            );
        }

        return [$encData, $envKeys];
    }
public function sealContentWithRSA($content)
    {
        $key = $this->getCertificateData();
        $encData = null;
        $envKeys = null;
        try {
            $result = openssl_seal($content, $encData, $envKeys, [$key]);
            if ($result === false) {
                throw new Exception();
            }
        } catch (Exception $exception) {
            $this->throwExceptionOpenssl(
                "Error while sealing data!",
                self::ERROR_ENCRYPT_DATA,
                $exception
            );
        }

        return [$encData, $envKeys];
    }
@param $content

@return array
@throws Exception