Free plan
Checksum
Get a fingerprint code of a file to prove it was not changed
About this tool
A checksum is a short code worked out from the contents of a file. If even one byte changes, the code changes, so it works like a fingerprint. This tool gives you the codes for one or more files, using the kind of code you choose, such as SHA-256 or MD5. You can also paste a code you were given, to see if it matches.
For example, a website gives you a code for a download and you check that your copy matches it exactly.
How to use it
- Choose this tool.
- Add one or more files.
- Choose the kind of code you need, such as SHA-256.
- If you were given a code, paste it as the expected code to compare.
- Press Generate, then copy the codes.
What you get back
You see the code of each file, and whether it matches the one you pasted. You can copy it or download a list.
GOOD TO KNOW
The files are read, never run. Counts as one document per file.
TEST IT LIVE
Try Checksum in the Studio
One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Family
Documents
Plan
Free
Method
POST
Endpoint
/v1/documents/checksum
Tool ID
documents.checksum
Authentication
API key
Accepts
Text and settings
Background jobs
Yes
Usage group
Documents
For developers
Use it from your code
cURL
curl -X POST "https://app.h2i.davixlabs.io/v1/documents/checksum" \
-H "X-Api-Key: $DAVIX_H2I_API_KEY" \
-F 'files=@document.pdf' \
-F 'algorithms=["sha256","md5"]' \
-F 'encoding=hex' \
-F 'expected=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'Node.js
const { DavixH2I } = require('@davixlabs/h2i-sdk');
const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.documents.checksum({
"files": 'document.pdf',
"algorithms": "[\"sha256\",\"md5\"]",
"encoding": "hex",
"expected": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
});
console.log(result.data, result.requestId);PHP
<?php
require 'vendor/autoload.php';
$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->documents()->checksum([
'files' => 'document.pdf',
'algorithms' => '["sha256","md5"]',
'encoding' => 'hex',
'expected' => 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855',
]);
echo $result->requestId;More in Documents
