Hash Value Certificate

What the certificate asks about hash values, how to calculate them, and a hash report to attach.

In short

  1. Select the original file(s) in the tool below: video, photo, audio, PDF, or everything copied from a pen drive.
  2. Keep MD5 + SHA-256 selected and press [CALCULATE HASH]. You get both hash values in one go.
  3. Press [GENERATE REPORT], fill in the case reference and source device, and download the PDF hash report.
  4. Write the hash value and the algorithm name on the certificate, and attach the report.

Your files are not uploaded. Everything runs inside your browser.

HASH_VALUE_CERTIFICATE
English

[1] SELECT FILE(S) TO HASH

One file, several, or two to compare.

[2] CHOOSE YOUR HASH FUNCTION

[3] LAUNCH THE HASHING PROCESS

What a hash value certificate is

In India, an electronic record (a video, a photo, a call recording, a chat export, a document) produced as evidence is accompanied by a certificate under Section 63 of the Bharatiya Sakshya Adhiniyam, 2023. That section replaced Section 65B of the Indian Evidence Act, 1872 from 1 July 2024, which is why many people still call it a "65B certificate".

The certificate format is set out in the Schedule to the Act. Part A is filled by the person producing the record and Part B by an expert. Among other things, the form asks you to identify the device the record came from (computer, mobile phone, pen drive, CD/DVD, DVR, server or cloud), to state the hash value of the record, to name the hash algorithm used (such as SHA-256, SHA-1 or MD5), and to enclose the hash report.

The hash value is what ties the certificate to one exact file. Anyone can later recalculate the hash of the file produced in court: if it is the same, the file has not been changed by even one byte since the certificate was signed.

This page explains the technical part: calculating the hash value and producing a report. It is not legal advice. The exact wording of the certificate, who must sign it and whether an expert is required in your case are questions for your advocate. Check the current official text of the Act.

Getting the right file first

The hash value on a certificate is only useful if it was calculated from the right copy: the original file, before any conversion, compression or editing. Each kind of record has its own traps, covered in two guides:

Preparing the hash part of a certificate

A workable order, whatever the record is:

  1. Hash before anything else. Calculate the hash as soon as you have the file, before it is played in an editor, renamed into a case folder by a program, or converted.
  2. Note where it came from. Write down the device (make, model, serial number or IMEI), the folder the file was in, and the date and time of hashing. The report form has fields for these.
  3. Copy, then hash the copy. If the file will be produced on a pen drive or CD, copy it there and hash the copy too. The same value on both sides shows the copy is exact.
  4. Transfer the value, don't retype it. Copy and paste the hash into the certificate. A 64-character value retyped by hand is easy to get wrong by one character, and one wrong character makes it a different value.
  5. Check what you wrote. Paste the value from the finished certificate into the verify box after hashing the produced file again. A match confirms the certificate, the file and the report agree.
  6. Keep the report with the file. Store the PDF report and the produced copy together, and do not open the produced copy in any program that might save it.

Common mistakes that make a hash value useless

  • ›No algorithm named. "Hash value: 3a7bd3e2…" cannot be checked without knowing whether it is MD5, SHA-1 or SHA-256.
  • ›Hash of a forwarded copy presented as the original. If only a forwarded copy exists, say so; its hash describes that copy.
  • ›Hashing after a conversion. A video converted to make it playable, or a photo exported as JPG, is a new file. Hash both and say which is which.
  • ›One hash for many files. Each file has its own value. For a folder or drive, list every file, as the report does.
  • ›Value shortened or wrapped badly. Writing only the first characters, or splitting the value across lines without making that clear, invites doubt. The report prints the full value.

SHA-256 or MD5?

Use SHA-256. It is the current standard and nobody has ever produced two different files with the same SHA-256 hash. MD5 and SHA-1 are still widely used, but it is possible to deliberately create two files sharing the same MD5 or SHA-1 hash, which is a weakness in a dispute.

Many certificates and forensic reports state two hash values, commonly MD5 and SHA-256. The MD5 + SHA-256 option, selected by default on this page, calculates both in a single pass and puts both in the report. If SHA-1 is requested, run the files again with SHA-1 selected. Always write the algorithm name next to the hash value: a hash without its algorithm cannot be checked. You can tell them apart by length: MD5 has 32 characters, SHA-1 has 40, SHA-256 has 64.

The hash report

After calculating, [GENERATE REPORT] produces a PDF with a unique report ID, the date and time, and for each file its name (with its folder path), size and hash values. The evidence section of the report form, open by default on this page, adds:

  • ›Case reference: the case, FIR or complaint number
  • ›Source device: make, model, serial number or IMEI of the device the files came from
  • ›Place, and a signature block (signature, name, designation, date) to sign by hand after printing
  • ›Verified by / Organization: the name of the person who calculated the hashes, and their office or firm

The report is the attachment. The certificate itself is the signed form from the Schedule. More on reports in the hash report guide.

हैश वैल्यू कैसे निकालें?

  1. ऊपर दिए गए टूल में अपनी फ़ाइल चुनें: वीडियो, फ़ोटो, PDF या पेन ड्राइव की फ़ाइलें।
  2. एल्गोरिदम में MD5 + SHA-256 चुना रहने दें और [CALCULATE HASH] दबाएँ।
  3. जो लंबा कोड दिखेगा, वही आपकी फ़ाइल की हैश वैल्यू है।
  4. [GENERATE REPORT] दबाकर PDF रिपोर्ट डाउनलोड करें और उसे सर्टिफिकेट के साथ लगाएँ।

आपकी फ़ाइल किसी सर्वर पर अपलोड नहीं होती। सारा काम आपके ब्राउज़र में ही होता है।

FAQ

Is the PDF report the certificate?

No. The certificate is the form in the Schedule, signed by the person producing the record (and by an expert where required). The hash report is the document you enclose with it, showing how the hash value was obtained.

Does copying the file change its hash value?

No. Copying to a computer, a pen drive or a CD keeps exactly the same bytes, so the hash stays the same. Re-encoding, compressing, editing or sending through a messaging app changes it.

How can the other side check the hash value?

By calculating the hash of the produced file with the same algorithm, using this site or any other tool, such as certutil -hashfile file.mp4 SHA256 on Windows. The compare page lets them paste the hash value from the certificate and see a match or mismatch.

Is my video uploaded to your server?

No. The file is read and hashed by your own browser. Nothing is transmitted, which also means there is no upload to wait for, even for a large video.

Is a hash value from this site accepted in court?

A hash value is a mathematical fact about the file: SHA-256 gives the same result in every correct tool. Whether the certificate and the evidence are accepted is a legal question that depends on the case. Ask your advocate.