When you enter your Apple ID on the iPad to authorize the account, or when you enter your gmail password in settings, and it verifies it, does anyone know if it encrypts that info before it sends it?

I wondering b/c I did that over an unsecured wi-fi network (though I've already changed my passwords, but I'm still curious).