Linux under the shell command, the production of MD5 code is also used in software MD5 check MD5 algorithm is often used to verify the integrity of network file transmission, to prevent files from being tampered with. MD5 full name is the digest to the algorithm (Message-digest algorithm 5), this algorithm for arbitrary length of information in a bitwise calculation, resulting in a binary length of 128 digits (hexadecimal length is 32 bits) of the "fingerprint" (or "Digest to"), The possibility that different documents produce the same report digest is very, very small. On Linux or UNIX, md5sum is the tool that is used to compute and validate the document digest. In general, the installation of Linux, there will be md5sum this tool, directly in the command line terminal to run directly. 1, the use of md5sum to generate fingerprints (message Digest) command as follows: md5sum filename > filename.md5 or md5sum filename >>filename.md5 can also be a number of file message summary Output to a MD5 file, which uses wildcards *, such as several ISO files in a directory, to export the abstracts of these ISO files to the Iso.md5 file, as follows: Md5sum *.iso > Iso.md5 2, use of MD5 digest to verify the file, the method has two : Put the downloaded file files and the File.md5 Report Digest to the file in the same directory, and then use the following command to verify: Md5sum-c file.md5 Then if the validation succeeds, it will output: the correct win under the Md5sum software.
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.