How Mac OS x verifies the SHA1 value of a file to resolve file deletion problems

Source: Internet
Author: User
Tags sha1 zip

When we upload and download files, it can easily lead to the lack of files, so how to solve this problem? Users usually check using the SHA1 value. Today small compilation teaches everybody how to examine the file the SHA1 value.

  Detection method:

Run the terminal (Application – Utility – Terminal. App) and perform the check in the following syntax:

For example, to check a SHA1 value on the desktop named "DOWNLOADEDFILE.DMG," you can enter:

Shasum ~/DESKTOP/DOWNLOADEDFILE.DMG:

The results of the test will be similar to the following:

$ shasum ~/desktop/checkme.zip

ddfdb3a7fc6fc7ca714c9e2930fa685136e90448 Checkme.zip

The longest 16 string is the SHA1 value of the file.

If the file path is more complex, don't forget to use MAC OS X drag-and-drop features, enter the "shasum" space, directly to verify the file dragged into the terminal window, the path will be automatically filled.

Shasum (Drag the file here)

  Remember to be sure to enter a space after "Shasum".

The shasum command defaults to detect the SHA1 value, and the parameter-a can be modified to 224, 256, 384, or 512.

This is the MAC system to detect the SHA1 value of the method, worry about their own downloaded files have missing users, you may wish to use this method to see if the file SHA1 value and the author provided the match.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.