connecting an arduino uno to wifi with esp-8266

I'm wondering if it is possible to connect a arduino uno to a wifi network with password using an esp8266.
I have already searched for examples like this but I couldn't find any example for connecting it to my wifi network.
Does anyone know how to login to a wifi network with password using the esp-8266?