digest: (
algorithm: "SHA-1" | "SHA-256" | "SHA-384" | "SHA-512",
message: string,
) => Promise<string> = ...
Type declaration
- (
algorithm: "SHA-1" | "SHA-256" | "SHA-384" | "SHA-512",
message: string,
): Promise<string> Parameters
- algorithm: "SHA-1" | "SHA-256" | "SHA-384" | "SHA-512"
- message: string
Returns Promise<string>
Generates a hex string digest from a given message.