Free plan

Checksum

Get a fingerprint code of a file to prove it was not changed
POST
/v1/documents/checksum

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

  1. Choose this tool.
  2. Add one or more files.
  3. Choose the kind of code you need, such as SHA-256.
  4. If you were given a code, paste it as the expected code to compare.
  5. 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.
Open in the Studio
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;
FAQ

Frequently asked questions

The checksums of one or more files (MD5, SHA-1, SHA-2, SHA-3, BLAKE2, CRC-32, Adler-32), several at once, checked against a hash you already have, with an optional manifest in the sha256sum style.

Checksum works from text and settings, so no file is needed. Every input is optional.

Checksum is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/documents/checksum with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.