WiFi password is set on your router, not on the iPhone. Go to your router setup page, should be 192.168.1.1 for most setups, you can change the password in the wifi options there. You'll need to change that password on all of your devices after that or they will loose connection.