public function signature(string $header, string $payload, string $secret): string
    {
        return $this->encode(
            $this->hash(
                $this->getHashAlgorithm(),
                $this->encode($header) . "." . $this->encode($payload),
                $secret
            )
        );
    }