MD5 values for Ubuntu computing files and strings

Source: Internet
Author: User
Tags md5

Calculate the MD5 value of the file:

md5sum file full path name for example: Md5sum/home/ljchlx/abc.txt

Computes the MD5 value of a string:

Echo-n ' Love ' | Md5sum-

Reference:

Calculation file--

http://yaodh.blog.51cto.com/1462667/329748

Http://hi.baidu.com/dullsky/blog/item/039cea509bdfb9591138c272.html

Calculate String--

http://forum.ubuntu.org.cn/viewtopic.php?t=237844

Http://muzso.hu/2008/07/18/quick-md5-hash-of-a-string

1. Calculating the md5-md5sum of a file

# md5sum Download.iso
b9555cc1915652237948e37ccc9c484e Download.iso

2. SHA1 of the computed file- sha1sum
# Sha1sum Download.iso
Bb7d67fb5776c2854edf35ec4a585ff8adc3dbda Download.iso

3. Calculating the MD5 of a string

ljchlx@ljchlx-ms-7592:~$ echo-n ' LJCHLX ' | Md5sum-

89973CCADC53378DA18B3241A26730CF-

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.