Hash a local file
hash_fileCompute SHA-256, SHA-1, MD5, and optional SHA-512 hashes from a local file's raw bytes without pasting or modifying it; reads files up to 5 MB and returns hex and Base64 values.
Instructions
Hash a local file's raw bytes with SHA-256, SHA-1, MD5, and optional SHA-512.
Use this when the data is in a file on this computer, so you don't have to paste it. The file is only read, never changed. Files larger than 5 MB are rejected; use the Apify version for bigger jobs. This tool does not look the hash up in a malware list or a password list.
path: full path to a file, up to 5 MB. algorithms: a list from sha256, sha1, md5, sha512. Default is sha256, sha1 and md5. MD5 and SHA-1 are not safe for new security work; prefer SHA-256 or SHA-512 when you can.
Returns {"ok", "bytes", "hashes", and a hex field for each algorithm, plus a Base64 field when include_base64 is true}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "hash_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Full path to a local file, up to 5 MB. The raw file bytes are hashed, not a decoded string. | |
| algorithms | No | Hash algorithms to compute. Default: sha256, sha1, md5. SHA-512 is optional. MD5 and SHA-1 are provided because people still need them for checks; they are not safe for new security work. | |
| include_base64 | No | If true (default), each hash is returned as hex and as Base64. Hex is always included. |