Sorry, but you are simply wrong on this... Math is not two way. There is a whole branch of mathematics called modulo arithmetic which is one way only. And guess what, that is what hashing algorithms use. Just because something is a one way function does not mean it isn't math.
Another way to think of it is if I give you a very large number and tell you to give me the two numbers I multiplied together to get that number the only method you would have is to guess until you got the right combination. That is what hashing and all digital encryption is like.