Verify a checksum in OS X

Edited by Rich, Eng, Nuance

The OS X operating system offers two built-in methods to verify the checksum of a downloaded file. A checksum is a sequence of numbers and letters that are derived from a newly created file. The checksum of a download can be compared to the original file to determine if data is missing. Missing data corrupts files, and a corrupt file will not run correctly. Checking the checksum before working with large downloaded files can reduce the time spent troubleshooting.

Was this helpful? Yes | No| I need help
Ad

Instructions

Instructions 40956.jpg
  1. 1
    Find the checksum
    .
    Return to the web page you downloaded the file from. The site will list the SHA-1 or MD5 value of the file. Copy this value to a blank text document.
    Advertisement
    Was this step helpful? Yes | No| I need help
  2. 2
    MD5
    .
    Advertisement
     
    1. Open Terminal. For a shortcut. Hold down the "Command" key and press "Space" to open Spotlight.
    2. Search for terminal in spotlight
    3. Type openssl md5 in terminal. Do not press enter yet.
    4. Enter file path. At this point you can drag and drop the file into the terminal to add the file path automatically. Otherwise, you need to type the entire path to the file manually.
    5. Interpreting output. The openssl md5 command will output the following: MD5(filename)= value.
    Was this step helpful? Yes | No| I need help
  3. 3
    SHA-1
    .
     
    1. Open Terminal. Follow the instructions above to open the terminal window.
    2. Type openssl sha1 in the terminal window. Do not press enter yet.
    3. Enter the file path. Drag and drop the file into the terminal window to copy the file path into the command. This will save you an immense amount of time.
    4. Interpreting the output. Output will read: SHA1(filename)= value.
    Was this step helpful? Yes | No| I need help
  4. 4
    Comparing checksum
    .
    After either operation:  
    1. Copy the checksum into the same text document as the first step.
    2. Copy the value directly underneath the initial value.
    3. Compare the two values.
    4. If they are the same then the file downloaded correctly.
    Was this step helpful? Yes | No| I need help
    Advertisement

Tips Tricks & Warnings

  • Apple Official Downloads. Official downloads from Apple are automatically checked for SHA-1 verification by the system. No need to perform the check yourself.

If you have problems with any of the steps in this article, please ask a question for more help, or post in the comments section below.

Comments

VisiHow welcomes all comments. If you do not want to be anonymous, register or log in. It is free.

Article Info

Categories : Operating System

Recent edits by: Eng, Rich

Share this Article:

Thanks to all authors for creating a page that has been read 1,548 times.

Do you have a question not answered in this article?
Click here to ask one of the writers of this article
x

Thank Our Volunteer Authors.

Would you like to give back to the community by fixing a spelling mistake? Yes | No