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

md5 unix - unix md5 - linux hash - md5 hash linux - md5 linux - linux MD5 - linux md5 hash - unix hash - calculate md5 linux - hash linux - linux md5 string - linux hash calculator - create md5 hash linux - linux calculate md5 - linux md5 password - md5 hash unix - calculate hash linux - calculate md5 hash - generate md5 linux - linux md5 text - linux generate md5 hash - linux generate md5 - MD5(Unix) - md5 hash on unix - calculate md5sum linux - linux hash command - how to calculate md5 - linux generate md5 password - linux md5 command - ubuntu md5 password - calculate sha1 linux - create md5 linux - linux md5 generate - linux create md5 - generate md5 hash linux - linux hash password - md5 calculator linux - unix calculate sha1 - linux calculate sha1 - linux calculate md5 hash - ubuntu md5 command - unix generate md5 - hash md5 linux - linux hash md5 - linux create md5 hash - md5 text linux - hash calculator for linux - md5 password linux - unix checksum md5 - calculate sha1 ubuntu -