public function createSealedResponse(
        int $status,
        string $body,
        SealingPublicKey $key,
        array $headers = [],
        string $version = '1.1'
    ): ResponseInterface {
        $sealed = Simple::seal(
            $body,
            $key
        );
        return new Response(
            $status,
            $headers,
            Base64UrlSafe::encode($sealed),
            $version
        );
    }
public function createSealedResponse(
        int $status,
        string $body,
        SealingPublicKey $key,
        array $headers = [],
        string $version = '1.1'
    ): ResponseInterface {
        $sealed = Simple::seal(
            $body,
            $key
        );
        return new Response(
            $status,
            $headers,
            Base64UrlSafe::encode($sealed),
            $version
        );
    }
public function createSealedResponse ( int $ status , string $ body , SealingPublicKey $ key , array $ headers = [ ] , string $ version = '1.1' ) : ResponseInterface { $ sealed = Simple :: seal ( $ body , $ key ) ; return new Response ( $ status , $ headers , Base64UrlSafe :: encode ( $ sealed ) , $ version ) ; }
Encrypt your HTTP response with the client's public key, so that only
the client can decrypt the message.

@param int $status
@param string $body
@param SealingPublicKey $key
@param array $headers
@param string $version
@return ResponseInterface
Encrypt your HTTP response with the client s public key so that only the client can decrypt the message .