Why CHAP is better than Base64 to protect the Password?

    CHAP is an authentication protocol that only transmits the MD5 result of “password +challenge string” on internet. The challenge string is only valid to a certain IP for one time connection.
    Base64 is simple and reversible encoding protocol. It’s easy and little efforts to restore the user name and password from the network packet.