Encodes usernames and passwords to base64