I need to md5sum some text from within a java app. For some reason the following doesn't work:
echo "mytext" | md5sum
it just prints mytext instead of the md5 hash. Is there a way to do something like:
md5sum < "mytext"
I know you can redirect from a file, but can you send a string as the input? Or is there a better way to MD5 a string in java?
echo "mytext" | md5sum
it just prints mytext instead of the md5 hash. Is there a way to do something like:
md5sum < "mytext"
I know you can redirect from a file, but can you send a string as the input? Or is there a better way to MD5 a string in java?