fileDigest
fileDigest(
path:string,algorithm:string):Promise<string>
Defined in: packages/pythonlib/src/hashlib.ts:449
Generate a file hash. Note: Only available in Node.js.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
path | string | undefined | File path |
algorithm | string | "sha256" | Hash algorithm name |
Returns
Promise<string>
Hash as hex string