Calculate MD5 and SHA1 on Linux-Linux general technology-Linux technology and application information. The following is a detailed description. Recently, JAVA 1.4.2 release is implemented. The network bandwidth in China and the United States is very poor, and both sides of the firewall need to be used. As a result, the FTP-uploaded release package is always inaccessible or incomplete, and the file size needs to be compared, and hash algorithms for integrity check. The hash values on both sides are consistent, even if it is done.
MD5 and SHA1 are currently the two most common hash algorithms.
In Linux, how does one calculate the two hash values? Basically, these two commands are set in all Linux distributions. For example, if the file to be checked is java_142.tar:
1. Calculate the MD5-md5sum of the file
# Md5sum JAVA_142.tar
B9555cc1915652236948e37ccc9c484e JAVA_142.tar
2. Calculate the SHA1-sha1sum of the file
# Sha1sum JAVA_142.tar
Bb7d67fb5776c2854edf35ec4a585ff8adc3dbda JAVA_142.tar
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