View:Verifying the integrity of downloaded files under Linux (MD5,SHA1,PGP)Http://blog.useasp.net/archive/2014/03/29/use-md5-sha1-or-pgp-to-check-downloaded-file-integrity-on-linux.aspxLinux is always difficult to learn, but sometimes, but found
Linux shell -- md5sum, sha1sum, sort, uniq 1. file verification 1. md5sumeg: md5sum filename Note: generate a 128-bit binary, that is, a 32-bit hexadecimal string 1. verify the correctness of the file: md5sum file1 file2> file_sum.md5 next time I
People who often download software under Linux must have a good habit of verifying the hash of the file to determine the integrity of the file or even security. When I configure the environment also happens to use, the author is a lubuntu machine. I'
Md5sum
Usage: md5sum [options] ... [File] ...
Displays or checks the MD5 (128-bit) checksum.
If there is no file option, or if the file is "-", read from the standard input.
-B,--binary read in binary mode
-C,--check read the MD5 checksum from
Md5sumUsage: md5sum [options] ... [File] ...Displays or checks the MD5 (128-bit) checksum.If there is no file option, or if the file is "-", read from the standard input.
-B,--binary read in binary mode-C,--check read the MD5 checksum from the file
Work sometimes need to calculate the string md5/sha1 to calculate or verify the password, Linux, unlike OS X can directly use the-s parameter, now summarize the commonly used methods.1. printf "string" |md5sum/sha1sum2. Echo-n "string"
1. As shown in the picture above, we often see the word checksum when downloading some things, the Chinese literal translation should be the meaning of the sum of the check code, commonly used in general MD5 and SHA1 two kinds. Under Linux it is
MD5 Verification:Large FTP sites generally provide the MD5 verification code for the downloaded file, which can be used to verifyWhether the downloaded file is correct or not.You can download the verification program for Windows.Ftp://www.cntomi.com/
Here is a string 123456 for example, its MD5 ciphertext value is: e10adc3949ba59abbe56e057f20f883eHere, 1.txt is the file that needs to be encrypted.First, the method of encrypting strings and files with Oppnssl MD5.1. Oppnssl MD5 method of
Hash function: an irreversible function. Its input can be a byte stream of any length. Its output is of a fixed size. The hash function is used to generate a digest for your file. It is unique.
For example, y = f (x) x indicates that input y
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.