PDA

View Full Version : Hashes from strings in BASH/CommandLine



WaterWalker
February 21st, 2010, 05:56 PM
How can i get a hash from a string using the command line/BASH
I know how to get it from a file($md5sum somefile).
But how do I something like:
$md5sum "123456"
e10adc3949ba59abbe56e057f20f883e

I've tried a lot, but there does not seem to be a way to use strings instead of files.

Barrucadu
February 21st, 2010, 06:05 PM
echo -n "a string" | md5sum