You can't with MD5 since it's a
cryptographic hash function[
^], a particular kind of
one-way function[
^]. Hash functions should be used to store hashes of passwords (rather than clear text) but the operation is not reversible (also, MD5 is vulnerable to attacks and must not be used for security features). The simplest way of ensuring secure transmissions of passwords and other secrets is to enforce HTTPS.