Compare Digests
Constant-time hex digest compare.
How to use Compare Digests
Compare Digests — Compare two hexadecimal digests in constant time and report match or mismatch. Free to use in D2i DevTools — no account required.
Steps
- Fill in Digest A (hex). This field is required.
- Fill in Digest B (hex). This field is required.
- Click Run and copy the result under the form.
Frequently asked questions
What is Compare Digests used for?
Use it to check a checksum you computed against one you received, without a short-circuit comparison on the hex strings.
How do I use the free online Compare Digests tool?
Fill in Digest A (hex). This field is required. Fill in Digest B (hex). This field is required. Click Run and copy the result under the form.
What can I paste or upload into Compare Digests?
Paste two hex digests. They must be valid hex and the same number of bytes.
What output does Compare Digests give me?
match, mismatch, or mismatch (length) when the decoded byte lengths differ. Invalid hex returns an error.
Is Compare Digests free, and is my input private?
Yes — Your input is processed in memory for this request only. It is not saved to disk or the database, and it is cleared after the tool finishes.
Why compare hashes this way?
A normal string compare can stop at the first different character. Constant-time compare avoids leaking how much of a secret digest matched. Length is still checked first.
Inputs are processed in memory only and are not saved to disk or the database. Data exists only for the duration of your request.