What is Hash Value and Why It Is Critical in Maintaining the Integrity of Digital Evidence

Digital evidence now dominates Indian courtrooms – CCTV footage, pictures, call records, and the list goes on. Whether it is WhatsApp chats, CCTV footage, emails, bank statements, digitally signed contracts, and government notifications, it is placed before judges in place of paper as a matter of routine. But, unlike a signed physical document, an electronic file can be altered without leaving any visible trace. This is precisely the gap that hash values are designed to close, and it is why the concept has moved from a purely technical footnote to a statutory requirement under India's evidence law.
What is Hash Value in Electronic Evidence
A hash value is a fixed-length alphanumeric string generated by running a piece of electronic data. It could be a document, an image, an audio file, a video, or an entire storage device, with hash value generated through a mathematical algorithm known as a hash function. Common hash functions include MD5, SHA-1, and SHA-256, with SHA-256 now the preferred standard in forensic and legal practice because of its stronger resistance to manipulation.
In the context of electronic evidence, the hash value functions as a digital fingerprint of the file at the exact moment it is collected or created. If even a single character, pixel, or byte of the underlying file changes afterward, the hash value generated from it will change completely. This property allows anyone (a court, an opposing party, or a forensic expert) to verify at a later date whether a piece of electronic evidence is identical to the original, without needing to compare the files line by line.
Section 65B of the Indian Evidence Act, 1872 required a certificate to accompany electronic records but did not mandate a hash value. The Bharatiya Sakshya Adhiniyam (BSA), 2023, which has replaced the Evidence Act, changes this. Section 63(4) and its accompanying Schedule now require the party producing electronic evidence to state the hash value of the record along with the specific hash algorithm used to generate it, as part of the certificate that makes the evidence admissible. The Supreme Court, in Pune Bar Association v. Union of India (2026 CaseBase(SC) 742), upheld this requirement, describing the hash value as the electronic equivalent of a fingerprint and holding that the certification requirement was neither arbitrary nor an unreasonable burden on litigants.
What are the Characteristics of Hash Value
Understanding why hash values are legally reliable requires understanding a few core characteristics that distinguish them from ordinary identifiers like file names or timestamps:
- Fixed length output: Regardless of whether the source file is a one-page notice or a multi-gigabyte video recording, the resulting hash value is always the same length for a given algorithm (for example, SHA-256 always produces a 256-bit value).
- Deterministic: The same input file, processed through the same hash function, will always produce the identical hash value, every time, on every device.
- Sensitivity to change: Even a trivial alteration to the source file adding a comma, changing a single pixel, or re-saving in a different format, produces a completely different hash value. This is often called the "avalanche effect."
- One-way function: A hash value cannot be reverse-engineered to reconstruct the original file. It confirms integrity; it does not store or reveal content.
- Collision resistance: A well-designed hash algorithm makes it computationally infeasible for two different files to produce the same hash value, which is why modern practice favours SHA-256 over older, weaker algorithms like MD5.
- Independent verifiability: Anyone with access to a copy of the file and the same hash algorithm can independently recompute the hash and compare it to the recorded value, without relying on the original custodian's word alone.
These characteristics are what make a hash value more than a technical curiosity. They make it a tool that a court can rely on to determine, objectively, whether a submitted electronic record is exactly what it claims to be.
Why Hash Value is Critical to the Integrity of Digital Evidence
Digital evidence is inherently fragile from an evidentiary standpoint. A document can be edited, a chat log trimmed, or a video clipped, often without any visible sign of tampering. Indian courts have repeatedly refused to admit electronic records where the chain of custody or authenticity could not be established, this was the central issue in landmark rulings such as Anvar P.V. v. P.K. Basheer and, later, Arjun Panditrao Khotkar v. Kailash Kushanrao Gorantyal (2026 CaseBase(BOM) 2648), both of which held that a proper certificate is a mandatory precondition to admissibility, not a mere formality that oral testimony can substitute for.
Hash values matter because they give courts an objective, mathematically verifiable answer to the question "has this evidence been altered since it was collected?" In Jagdeo Singh v. State (2015 CaseBase(DEL) 736), the court recognised the role of documented hash values in establishing the chain of custody for digital evidence, particularly where multiple forensic copies or images of a device are created during an investigation. This judicial recognition predates the BSA and shows that hash values were already being treated as best practice in forensic examination long before they became a statutory requirement.
The practical stakes are significant, particularly in matters where digital evidence carries the entire weight of a case: matrimonial disputes, POCSO matters, cheque-bounce cases under Section 138 of the Negotiable Instruments Act, cybercrime, and contractual disputes involving digitally signed agreements. Evidence collected without a recorded hash value is vulnerable to challenge on the ground that it may have been edited, re-formatted, or selectively curated before being placed before the court, even where no actual tampering occurred. Once a hash value is generated at the point of collection and preserved alongside the record, that specific risk is largely neutralised: the hash itself becomes the proof that the version before the court is the same version that was originally captured.
How Platforms Are Building Hash Verification Into Evidence Collection
Given how central hash values have become to the admissibility of electronic records, a growing category of legal-tech and document platforms in India now build hash generation directly into their evidence and document-handling workflows, rather than leaving it to manual forensic steps after the fact. When a document is uploaded, signed, or collected through such platforms, a hash value is computed for that specific file at the point of capture and stored alongside it, so that its integrity can be verified later without needing a separate forensic exercise.
DigieSign is a platform operating in this space, offering document execution and evidence-related infrastructure aimed at Indian legal and compliance workflows. Platforms of this kind are part of a broader shift in Indian Legaltech, particularly Fintech, as the BSA's hash and certification requirements raise the evidentiary bar for electronic records, tools that generate and preserve hash values automatically at the point of document creation or collection are becoming a practical necessity for organizations that need their digital records to hold up in court, rather than a discretionary add-on.
The Wider Picture
Hash value is no longer a purely technical concept confined to digital forensics labs, it is now a statutory building block of admissibility for electronic evidence under Section 63 of the Bharatiya Sakshya Adhiniyam, 2023. Its defining characteristics: a fixed-length, deterministic, one-way output that changes completely with even the smallest alteration to the source file, are exactly what make it useful as legal proof of integrity. As Indian courts continue to scrutinise how electronic evidence is collected, certified, and preserved, understanding hash values, and using platforms designed to generate and track them at the point of collection, will only become more important for lawyers, litigants, and compliance teams alike.