Hash Value Calculator
Introduction |
Quick References |
How Do I ... Topics |
Built-in Tools |
Scripting and Programming
A hash value (also known as message digest) consists of a small amount of binary
data, typically around 160 bits. This is produced by using a hashing algorithm.
All hash values share the following properties, regardless of the algorithm used:
- The length of the hash value is determined by the type of algorithm used, and
its length does not vary with the size of the message. The message can be several
kilobytes or several gigabytes, it doesn't matter. The most common hash value
lengths are either 128 or 160 bits.
- Every pair of nonidentical messages will translate into a completely different
hash value, even if the two messages differ only by a single bit. Using today's
technology, it is not feasible to discover a pair of messages that translate to the
same hash value without breaking the hashing algorithm.
- Each time a particular message is hashed using the same algorithm, the exact
same hash value will be produced.
- All hashing algorithms are one-way. Given a hash value, it is not possible to
recover the original message. In fact, none of the properties of the original message
can be determined given the hash value alone.
For these reasons hashes are useful in detecting any modification in a large data
object, such as a message or a file.
If you use a file as the source of input bytes, you can explicitly exclude certain
byte ranges by selecting the Ignore Ranges check box
and enter the ranges in the associated edit box. This feature is useful to calculate
the hash value for file in which the actual hash value is stored and thus should
be excluded from the calculation.
Hpmbcalc has implemented this Hash Value Calculator by means of Microsoft Cryptographic
Application Programming Interface (CryptoAPI). To activate the tool, you can choose
Hash Value Calculator... item From the Tools menu. For more information
about how does Hpmbcalc use CryptoAPI, please refer to
Key Container Manager.

What do you want to do?
To see options
- From Message:
Select here to use the text of the Input Text box as
the source of input bytes.
- From File:
Select here to use a disk file as the source of input bytes.
- Input Text:
It is "Input Text" box. When you click the Calculate button,
if the Input Source is set to From Message, the hash
value of any data entered into the text box will be computed.
- Browse File:
Click it to browse a file as the source of input bytes.
- Input File:
Shows the current file path specified as the source of input bytes.
- Ignore Ranges:
Select it to enable explicitly excluding centain byte ranges and enter the
byte ranges in the associated edit box. Multiple addresses can be indicated
using commas or semicolon, and a range of addresses can be indicated
using ".." between two addresses. For example, enter the string
"1024..2048, 0x4096, 512" will exclude the 1024 bytes starting at address
1024, the single byte at 0x4096, and the single byte at 512.
- Hex Number:
Select it to cause the text in the Input Text box to be
treated as a space-separated list of hex-bytes. Note that a string representation,
instead of a hex representation, would have a different hash value.
- Hash Algorithm:
This list box provides a space for you to choose a hashing algorithm to be used in
the hash value calculation.
- MD2, MD4, and MD5:
MD2, MD4, and MD5 hashing algorithms were all developed by RSA Data Security, Inc.
These algorithms were developed in sequential order, with the later algorithms being
better (more secure) than the earlier ones. All three generate 128-bit hash values.
Of the three algorithms, MD5 is recommended.
- Secure Hash Algorithm (SHA):
Secure Hash Standard was designed by the National Institute of Standards and
Technology (NIST) and by the National Security Agency (NSA). This standard defines
the Secure Hash Algorithm (SHA) for use with the Digital Signature Standard (DSS).
There are five varieties of SHA: SHA-160 (SHA-1), SHA-224, SHA-256, SHA-384, and
SHA-512. SHA-160 generates a 160-bit message digest. SHA-224, SHA-256, SHA-384,
and SHA-512 generate 224-bit, 256-bit, 384-bit, and 512-bit message digests,
respectively.
- RIPEMD-160:
RIPEMD-160 is a 160-bit hashing algorithm, designed by Hans Dobbertin, Antoon
Bosselaers, and Bart Preneel. It is intended to be used as a secure replacement for
the 128-bit hash functions MD4, MD5, and RIPEMD-128. RIPEMD-128 was developed in
the framework of the EU project RIPE (RACE Integrity Primitives Evaluation,
1988-1992).
The internal details of these algorithms are well beyond the scope of this document.
For a list of additional sources, please refer to
Related Documentation
- Hash Result:
Displays the hash value of your Input Text or
Input File.
To see commands
- Calculate:
Calculate the hash value of your Input Text or
Input File based on the parameters you specified.
- Save As:
This command displays a Save As dialog so you can name your file and
save the Hash Result by choosing one of
file type as your want:
- Hexadecimal bytes
- Base64 Encoded Hex Bytes
- Hexadecimal Text
- C Source Hexadecimal Data
- HTML Hexadecimal Data
How to hash a message?
To hash a message, you can:
- Select From Message.
- Enter your message to be hashed in the Input Text box.
- Choose a Hash Algorithm.
- Set other options as you want.
- Click Calculate to compute the hash value of the message.
How to hash a file?
To hash a file, you can:
- Select From File.
- Click Browse File to browse a file.
- Choose a Hash Algorithm.
- Click Calculate to compute the hash value of the file.
How to hash a hex number?
To hash a hex number, you can:
- Select From Message.
- Enter the hex number to be hashed in the Input Text box.
- Select Hex Number.
- Choose a Hash Algorithm.
- Click Calculate to compute the hash value of the hex number.