How to Find and Restore WiFi Security Code

It's common to need to connect to a wireless network but lose or forget the access key. This can happen after reinstalling the operating system, buying a new smartphone, or simply losing the sticker containing the data. Router owners often change the factory settings, forgetting to save the new values ​​in a safe place.

Fortunately, modern devices and operating systems allow you to retrieve saved credentials if at least one gadget already has access to the hotspot. Security code — is not just a set of characters, but an important element in protecting your traffic from prying eyes. There are several proven methods for recovering information, from viewing connection properties in Windows to physically resetting the hardware.

In this article, we'll cover the steps for various platforms in detail. You'll learn how to view your saved password on your computer, where to find it in your mobile phone settings, and what to do if no device remembers your login information. It's important to understand that accessing security settings requires administrator rights or physical access to the router.

Finding a password in the Windows operating system

operating system Windows Stores encrypted profiles of all networks the computer has ever connected to. However, for an active connection, there's a simple graphical interface that allows you to display the hidden key. This method works on all current OS versions, starting with Windows 7.

First, you need to open the Network Control Panel. Press the key combination Win + R, enter the command ncpa.cpl and press Enter. In the window that opens, find the "Wireless Network" icon, right-click it, and select "Status." Then, go to the "Wireless Network Properties" section.

In the new window, switch to the "Security" tab. This is where the "Network Security Key" field is located. By default, the characters are hidden behind asterisks. To see them, check the "Show entered characters" box. The system may require administrator privileges to perform this operation.

If your computer isn't currently connected to the network, but has connected before, use the command line. Open Terminal as administrator and enter the following command: netsh wlan show profile name="Network_Name" key=clearIn the "Security Settings" section, find the "Key Contents" line.

⚠️ Attention: The command line is case-sensitive and space-sensitive. If your network name contains spaces, be sure to enclose it in quotation marks, otherwise the command will return an error.

  • 🔑 Use hotkeys to quickly access network settings Win + R.
  • 💻 Administrator rights are required to view saved security keys.
  • 👁️ Hiding password characters is a standard security measure against over-the-shoulder peeking.

Restoring access on Android devices

Owners of smartphones based on Android They can also obtain the security code if the device has previously successfully connected to the hotspot. The mechanism depends on the operating system version. On Android 10 and later, Google has implemented a convenient feature for sharing access via QR codes, where the password is often displayed in text.

To find your data, go to your device's settings and select "Wi-Fi" or "Connections." Tap the name of the network you're connected to or the gear icon next to it. In the menu that opens, find the "Share" or "QR code" button.

The system will ask you to verify your identity using a PIN, fingerprint, or facial recognition. After successful authentication, a QR code for connecting other devices will appear on the screen. This code is often accompanied by the text "Network security code: ...." If the text doesn't appear, take a screenshot and scan the code with any QR reader or Google Lens.

On older versions of Android (9 and below), it's practically impossible to view the password in plain text without root access due to system security restrictions. Configuration file wpa_supplicant.conf protected from reading by regular applications.

What to do if there is no "Share" button?

On some operating systems (such as older versions of MIUI or EMUI), this feature may be hidden. Try looking for "More" or "Advanced Settings" in the Wi-Fi menu. If you don't see this option, use a QR code scanner app to take a screenshot of the settings screen if the system allows you to generate a code.

  • 📱 The password viewer feature is available on Android 10, 11, 12, 13 and later.
  • 🔒 Biometric security prevents unauthorized access to your data.
  • 📸 A QR code screenshot is a universal way to "read" a password through third-party applications.

View your security key on iPhone and iPad

Ecosystem users Apple For a long time, it was impossible to view saved Wi-Fi passwords without using a macOS computer. This situation changed dramatically with the release of iOS 16 and iPadOS 16. This feature is now built directly into the device settings.

To view the key, open "Settings" and go to "Wi-Fi." Make sure you're connected to the desired network, or find it in the list of known networks. Tap the blue information icon (the letter "i" in a circle) to the right of the network name.

In the menu that opens, find the "Password" field. Initially, the characters will be hidden by dots. Tap this field, and the system will ask you to authenticate via Face ID, Touch ID, or a digital unlock code. Once confirmed, the password will become visible and can be copied.

If you have an older version of iOS, the only way to find your password is to use your Mac's Keychain. On macOS, keys are stored in iCloud Keychain. Open Keychain on your Mac, find your network name in the list, double-click it, and check "Show password."

📊 What problem do you encounter most often?
I forgot my router password.
Need to connect a guest
The password is too complex
I have an old phone.
  • 🍏 The preview feature is only available on iOS 16+ and iPadOS 16+.
  • ☁️ Syncing via iCloud Keychain allows you to see passwords on all your Apple devices.
  • 📋 The copy button allows you to instantly paste the password into other applications.

Checking the factory data on the router case

The easiest, but often overlooked way is to look at the sticker on the device body. Manufacturers TP-Link, Asus, D-Link, Keenetic and others place the factory data on the bottom or back panel of the router. This is relevant if you've never changed the default settings.

The label usually contains: the device model, MAC address, IP address for entering the control panel (usually 192.168.0.1 or 192.168.1.1), login and password for administration, and WiFi network security code (Wireless Password / PIN). The field you're looking for may be called WPA Key, Wireless Key, or simply Password.

Please note that if the router was configured by your provider or previous owner, the information on the sticker may be out of date. In this case, the sticker will only allow you to log in to the web interface, but will not directly provide the Wi-Fi key if it has been changed.

It's also worth considering the sticker's physical condition. Over time, the paint may wear off, and the label itself may peel off. In such cases, bright lighting and macro photography with a phone can help make out faded symbols.

⚠️ Attention: Never post photos of your router sticker on social media. It contains all the information needed to gain control of your network, including your MAC address and factory administrator password.

  • 🏷️ The factory password is often the same as the PIN code or the last characters of the MAC address.
  • 📷 Use your camera's flash to better read worn symbols on the old sticker.
  • 🔄 If the data on the sticker does not match, it means the settings were changed manually.

Login to the router control panel

If none of your devices remember the password and the sticker doesn't help, your only option is to access the router's settings. To do this, you'll need a computer or phone connected to the router (at least via cable if Wi-Fi isn't working) and a browser.

Open your browser and enter your router's IP address in the address bar. Standard addresses are: 192.168.0.1, 192.168.1.1, 192.168.31.1 (for Xiaomi) or domain name (for example, my.keenetic.net). The exact address is indicated on the same sticker or in the documentation.

The system will ask for your username and password to log in. If you haven't changed them, try the default combinations: admin/admin, admin/password, or admin/1234. If the default combinations don't work and you don't remember them, you'll have to reset the settings (more on that below).

After successfully logging in, find the "Wireless," "Wi-Fi," or "WLAN" section. Inside, you'll find a "Security" subsection. The current key is displayed in the "Pre-Shared Key" field. You can view it, copy it, or replace it with a new one.

☑️ Router login algorithm

Completed: 0 / 4
Router brand Entrance address Default login Default password
TP-Link 192.168.0.1 admin admin
Asus 192.168.1.1 admin admin
D-Link 192.168.0.1 admin (empty)
Keenetic 192.168.1.1 admin 1234
Xiaomi 192.168.31.1 admin (no/asked)

Factory reset (Hard Reset)

When your Wi-Fi password is lost, changed by an unknown person, and you can't access the router's control panel (the administrator password is forgotten), a radical yet effective solution remains: a full reset. This will return the device to its out-of-the-box state.

On the back of the router, find a small hole labeled Reset or RestoreIt's usually recessed into the housing to prevent accidental pressing. You'll need a thin object: a paperclip, a toothpick, or a needle.

Plug in the router and wait for it to boot up. Press the reset button inside the hole and hold it for about 10-15 seconds. The lights on the router should blink or turn off, indicating the reset process has begun. Release the button and wait for the device to reboot (2-3 minutes).

After rebooting, the router will use the factory Wi-Fi password found on the sticker. You'll be able to connect, but it's recommended to immediately go to settings and set a new, strong password for security.

⚠️ Attention: Router interfaces and operating logic may vary depending on the model and firmware version. If you're unsure about what you're doing, it's best to consult with your provider's technical support before resetting to avoid losing internet access.

  • 📎 Use a thin, hard object (paper clip) to reset.
  • ⏳ You need to hold the Reset button for a long time (10-15 seconds) until the indicators blink.
  • ⚠️ Resetting deletes your provider settings, and your internet may stop working until you reset it.

Frequently Asked Questions (FAQ)

Is it possible to find out a neighbor's Wi-Fi password if it is hidden?

No, there are no legal ways to hack someone else's WPA2/WPA3 network without knowing the password. Internet hacking programs often contain viruses or are scams. Connecting to someone else's network without the owner's permission is illegal.

Where can I find the password file on a rooted Android device?

On devices with superuser rights (Root), passwords are stored in a system file /data/misc/wifi/wpa_supplicant.confTo view this file, you need special file managers with access to system partitions, such as Root Explorer or Solid Explorer.

What should I do if the password on the sticker is erased?

If the sticker is illegible and the password isn't saved on the device, resetting the router using the Reset button will help. After that, the device will work with the factory key, which can be found in the paper manual or on the manufacturer's website for your device model.

Are password viewer apps safe to use?

Applications that simply reveal the password stored in the system (requiring root access) are safe. However, programs that promise to "guess" or "crack" passwords often steal user data. Be careful when installing such software from untrusted sources.