config = $config; } public function hash(string $string): string { $secretKey = $this->config->get($this->secretKeyParam) ?? ''; return md5(hash_hmac('sha256', $string, $secretKey, true)); } }