Skip to main content
Module

x/keygrip/mod.ts>Keygrip#index

A keygrip implementation in Deno
Latest
method Keygrip.prototype.index
import { Keygrip } from "https://deno.land/x/keygrip@v2.0.0/mod.ts";

Resolve the index of which key was used to digest specified data.

Parameters

data: string

Data to digest

digest: string

Digested hash to compare against

Returns

number