- hash<Options>(input, options?): Options["algorithm"] extends any[]
? {
[Key in Options["algorithm"][number]]: Options["output"] extends "buffer"
? Buffer
: string
}
: Options["output"] extends "buffer"
? Buffer
: string Type Parameters
- Options extends {
algorithm?: ArrayOrNot<string>;
output?: "buffer" | BinaryToTextEncoding;
salt?: string;
}
Parameters
- input: string
Optional
options: Options
Returns Options["algorithm"] extends any[]
? {
[Key in Options["algorithm"][number]]: Options["output"] extends "buffer"
? Buffer
: string
}
: Options["output"] extends "buffer"
? Buffer
: string
Hash a String