private function hashKey(string $value): string
    {
        $ret = openssl_digest($value, $this->digestMethod, true);
        if ($ret === false) {
            throw new \Exception("digest failed; ".openssl_error_string());
        }
        return $ret;
    }