Welcome to the forum @traba86 . As @dezymond mentioned, we'll need a little more information as to what exactly you're trying to do. We can't help provide you with information for obtaining the password for someone else's WiFi connection, and any further discussion of that type is strictly prohibited on our forum. However, if you're looking for help with connecting to your own WiFi setup, please let us know and we'll do our best to help you resolve the problem.
@traba86 , the Wi-Fi password is soft coded into the wireless router or hotspot that you are trying to connect to. If this is your own router you would log into it from your web browser on your pc, then there would be menus taking you to where you create the Wi-Fi password and select the wireless protocol.
If it's a private or public Wi-Fi hotspot you would need to contact whomever is in charge of that location, such as a coffee shop or hospital or school. Many of the public hotspots have webpages that will come up automatically when you select and connect to them, and once you register you're able to communicate.