So the problem I am currently having is that my program always calls the \'md5cypher\' class which I have defined, even if the input is not in that list:
def
In reality you're checking:
if (toe=='md5') or 'M' or 'm' or....
And since bool('M') is True, you will always succeed that check. Try this instead:
bool('M')
True
if toe.lower() in ('md5', 'm'):