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).
Related Articles
- Proper Way to Generate MD5 Hash for XCache Administration Password with md5sum or PHP
- Hash Calculator to Get, Compute and Calculate MD5 and SHA1 File Checksum or Hash Value
- Refresh Linux or Unix Path Environmental Variables with rehash
- How to Make or Create Symbolic Link in Unix or Linux
- How to Mount USB Disk Drive in UNIX or Linux
- How to Disable Linux and Unix Cron Jobs (Crontab) Email Sending
- Change Group Ownership of Symbolic Links in Unix or Linux
- How to Change or Spoof MAC Address in Windows XP, Vista, Server 2003/2008, Mac OS X, Unix and Linux
- Open, Extract and Convert DAA, ISO and BIN Files in Linux with Free PowerISO for Linux
- Find Files that are Modified Today (or Since Certain Time Ago) in Unix










































December 10th, 2008 02:33
[...] generate the MD5 hashes for your desired password for XCache admin-page in PHP.INI, there are plenty of methods. The [...]