md5 is one way encryption. You can't take an MD5 hash and come out with the original. What you can do is take what you think the original is, do an md5 sum on it, and compare the hashes.
The OpenSSL MD5 Function Manpage
will tell you how to make MD5 hashes.