SHA-1 Tool The CypherCalc SHA-1 tool is used to compute a Secure Hash of your input data. It computes a 160-bit representation of a message or data file, called a message digest. This tool implements the secure hash as described in FIPS PUB 180-1, "Secure Hash Standard", 17 April 1995.

To use the SHA-1 tool, enter the SHA-1 settings (as described below), then click "Compute Digest" to compute the message digest of the selected input source. CypherCalc computes the digest and displays it in the "Message Digest" box.

The example at right shows the digest of the ASCII string "abc". This string is a test case given in FIPS PUB 180-1.

The SHA-1 Settings

Input Source. Selecting "Input Message" as the source causes CypherCalc to use the text of the "Input Message" box as its source of input bytes. How CypherCalc treats this data is determined by the "Input Format", discussed below. Selecting "File" allows you to pick a disk file as the source of input bytes when the "Compute Digest" button is clicked.

Input Message. The digest of any data entered into the text box will be computed when you click the "Compute Digest" button, if the Input Source is set to "Input Message". How CypherCalc treats this data is determined by the "Input Format", discussed below. You can type this data, drag it from another CypherCalc window, or paste it from another application, such as a debugger or code editor. The bytes in this text box are fed into the SHA-1 engine in a left-to-right, top-to-bottom order.

Input Format. Selecting "Bin/Ascii" causes the text in the Input Message box to be treated as a string of ASCII characters. For example, if the Input Message contains "1234" CypherCalc will compute the digest of the four ASCII characters "1", "2", "3", and "4", or 0x31, 0x32, 0x33, 0x34. Selecting "Hex" causes the text in the Input Message box to be treated as a hexadecimal number. For example, if the Input Message contains "1234" CypherCalc will compute the digest of the two hex bytes 0x12, 0x34. Note that selecting "File" as the input source forces the format to "Bin/Ascii". That is, all disk files are treated as a string of binary bytes.

This computed message digest can be pasted into an external application, such as your code editor. If needed, you can drag this number into CypherCalc's Format Numbers tool for additional formatting before pasting it into your external application.


| Home | Features | Tools | Programming | System Requirements | Ordering Info |