public function decryptStringRequestWithSharedKey(
        RequestInterface $request,
        SharedEncryptionKey $key
    ): string {
        return Simple::decrypt(
            (string) $request->getBody(),
            $key
        );
    }
public function decryptStringRequestWithSharedKey(
        RequestInterface $request,
        SharedEncryptionKey $key
    ): string {
        return Simple::decrypt(
            (string) $request->getBody(),
            $key
        );
    }
public function decryptStringRequestWithSharedKey ( RequestInterface $ request , SharedEncryptionKey $ key ) : string { return Simple :: decrypt ( ( string ) $ request -> getBody ( ) , $ key ) ; }
Decrypt an HTTP request with a pre-shared key, then get the body as a
string.

@param RequestInterface $request
@param SharedEncryptionKey $key
@return string
Decrypt an HTTP request with a pre - shared key then get the body as a string .