MD5 and SHA1 on terminal

Encode a string (MD5)

$ echo -n "Softwaretester" | openssl md5

Encode a string (SHA1)

$ echo -n "Softwaretester" | openssl sha1

The -n after the echo command, prevents echo from appending a newline character on the end of the string.