I will present two examples to generate an md5 hash from an input string.
The first example uses the openssl.
1 2 3 | $ echo -n 'text to be encrypted' | openssl md5 (stdin)= 8df639b301a1e10c36cc2f03bbdf8863 |
The second example uses md5sum.
1 2 3 | $ echo -n 'text to be encrypted' | md5sum 8df639b301a1e10c36cc2f03bbdf8863 - |
This is all.