How to Calculate and Generate MD5 Hash Value in Linux and Unix with md5sum

In Linux, Unix and most Unix-like operating system such as CentOS, RedHat Fedora Core, Ubuntu and SuSE Linux, there is built-in functionality to calculate and generate the hash value of MD5 without having to download and install additional program. The program that can show the MD5 hash for text, digits, numbers or string is md5sum.

md5sum is installed by default in most Linux and Unix operating system, including on most web hosts or web servers powered by cPanel or Plesk, where administrators or webmasters have to commonly generate MD5 hash for the password used in PHP scripts or other web applications.

To generate MD5 hash value for a combination of characters and digits using md5sum, use the command syntax below (with quotation marks between the string to generate the MD5 hash for):

echo -n “string” | md5sum

The MD5 hash will be displayed below the command. Administrators can run the command on console screen or via SSH (Telnet not recommended though as it’s not encrypted and secured).


One Response to “How to Calculate and Generate MD5 Hash Value in Linux and Unix with md5sum”

  1. Proper Way to Generate MD5 Hash for XCache Administration Password with md5sum or PHP » My Digital Life
    December 10th, 2008 02:33
    1

    [...] generate the MD5 hashes for your desired password for XCache admin-page in PHP.INI, there are plenty of methods. The [...]

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

New Articles

Incoming Search Terms for the Article

unix md5 - linux hash - linux md5 - md5 unix - linux generate md5 - md5 linux - md5 hash linux - linux md5 hash - linux md5 password - unix hash - generate md5 linux - hash linux - how to calculate MD5 - generate linux password hash - calculate md5 linux - create md5 hash linux - how to calculate md5 hash - unix md5 hash - create md5 linux - generate sha1 linux - centos sha1 hash calc - generate md5 hash linux - md5 in unix - linux calculate md5 - ubuntu md5 command - how linux calculate password - md5 encryption in unix - linux md5 string - md5 text linux - hash calc linux - hash calculator on linux - linux create md5 password - linux create md5 - linux md5 a string - calculating md5 checksum linux - linux generate md5 password - linux generate sha1 - md5 encrypt linux - calculate hash linux - linux md5 - linux md5 calculator - linux md5 of a string - create md5 checksum linux - md5 hash unix - unix generate md5 - generate a md5 in linux - linux hash md5 - linux hash command - linux create md5 hash - ubuntu calculate hash value -