Many users are familiar with the situation of needing to connect a new device to a wireless network but forgetting or losing the password. It often happens that a smartphone or tablet is successfully connected to the router, but simply forgetting to enter the access code on a laptop or TV prevents it. Fortunately, modern operating systems and network equipment store this data in encrypted form, allowing it to be retrieved legally if necessary.
There are several ways to recover a forgotten security key, depending on the device you have on hand and whether it has network access. Administrative access Access to a router or having at least one computer already connected significantly simplifies the process. In this article, we'll explore the technical nuances of obtaining encryption key information using various methods.
Viewing your password through Windows settings
The Windows operating system automatically saves profiles of all networks your computer has ever connected to. This is designed for user convenience, so you don't have to re-enter data each time, but it also makes it easier to remember forgotten information. To do this, you'll need physical access to a device that's already successfully connected to the desired access point or has previously connected to it.
The easiest way to find the required data is in the standard network management interface. Open the Network Connections control panel, find the active adapter, and go to the wireless network properties. There, in the Security tab, you can make hidden text visible by unchecking the corresponding box. This method works on most versions of Windows, starting with Windows 7.
However, if the graphical interface is unavailable for some reason or you prefer to work with the console, you can use the command line. This method is considered more professional and allows you to quickly get results without lengthy menu navigation. The command line with administrator rights uses a special syntax for querying WLAN profiles.
To get data, enter the command netsh wlan show profile name="Network_Name" key=clearIn the list that appears, find the line labeled "Key Content," where the code you're looking for will be displayed. Note that the network name in the command must be enclosed in quotation marks if it contains spaces.
Using the Command Prompt for Advanced Users
Working with the console provides more flexible network profile management options. You can not only change the password, but also delete old, unnecessary connections or export settings. This is especially useful for system administrators or users who frequently change hardware configurations.
Before you begin, make sure the command prompt is running as administrator. Without elevated privileges, the system will block access to sensitive security data. You can first list all saved profiles to determine the exact network name if it contains special characters.
- 📡 Enter
netsh wlan show profilesto display a list of all networks known to the computer. - 🔍 Find the exact name of the profile you need in the list, paying attention to the letter case.
- 🔑 Use the command with the key
key=clearto display the password in clear text. - 💾 Copy the result to the clipboard by selecting the text and pressing Enter in the console window.
In this case, standard key derivation methods will not work, and system administrator intervention will be required. Windows local security policies may prohibit the display of encryption keys, even for administrator accounts.
What to do if the command fails?
If the system reports "Access Denied," check if the console is running as an administrator. Your antivirus may also be blocking attempts to read system security keys.
How to find out the password on an Android smartphone
Owners of Android mobile devices often need to share a password with guests or connect a tablet. Android 10 and newer versions of the operating system significantly simplify this process thanks to the QR code sharing feature. You don't need to be a hacker to access stored data.
To view the password, go to Wi-Fi settings, select the active network, and tap the gear icon or the "Share" button. A QR code will appear on the screen. Scanning it with another device allows you to instantly connect. However, to view the actual text password, you often need to tap the eye icon or use a screenshot with text recognition.
⚠️ Note: On some smartphone models (Samsung, Xiaomi, Huawei), the text password may be hidden behind asterisks even in the sharing menu. In this case, scanning the QR code with the camera of another phone with a QR scanner installed that displays the text content will help.
If you have an older version of Android or superuser rights (Root), you can use file managers with access to system partitions. File wpa_supplicant.conf Stores all saved networks and passwords in plain text. However, access to it without root access is blocked by the Android security system.
For devices with root rights, the file path usually looks like this: /data/misc/wifi/wpa_supplicant.conf. If you open this file with any text editor, you will find the lines ssid (network name) and psk (password). Be careful when editing system files, as an error may reset your network settings.
Restoring access via the router's web interface
The most secure way to find out or change your password is to access your router's settings. This method is universal and works on any device with a browser. You'll need a computer or phone connected to the router via cable or Wi-Fi, and your login credentials for the admin panel.
Open your browser and enter your router's IP address in the address bar. Most often, this is 192.168.0.1 or 192.168.1.1, however, the address may vary depending on the model and manufacturer. Authorization information (username and password) is usually located on a sticker on the bottom of the device, unless they have been previously changed.
After successfully logging in, you need to find the section responsible for your wireless network. It may be labeled "Wireless," "Wi-Fi," "Wireless Mode," or "WLAN." Within this section, look for the "Security" or "Wireless Network Settings" subsection. This is where the field with the current encryption key is located.
☑️ Login to router settings
If you haven't changed your administrator password before, try the standard combinations: admin/admin, admin/password, or admin/1234. If the default passwords don't work and you don't remember them, you'll have to reset your router to factory settings, which will require you to reconfigure your internet connection.
Table of standard addresses and logins for popular routers
For quick access to the control interface, it's helpful to know your hardware's factory settings. Below is a table with the most common login credentials. If you didn't change these settings during initial installation, they should work.
| Manufacturer | IP address | Login | Password |
|---|---|---|---|
| TP-Link | 192.168.0.1 | admin | admin |
| ASUS | 192.168.1.1 | admin | admin |
| D-Link | 192.168.0.1 | admin | (empty) |
| Netgear | 192.168.1.1 | admin | password |
| Keenetic | 192.168.1.1 | admin | 1234 |
It's worth noting that modern router models often require you to set a custom administrator password when first turned on, ignoring the factory defaults. If the default password doesn't work, check the sticker on the device—it may contain your own login credentials.
macOS and iOS Key Viewing Capabilities
Apple ecosystem users can also retrieve their saved passwords, although the process is slightly different from Windows. On Mac computers, all Wi-Fi passwords are stored in iCloud Keychain. This secure storage requires authentication via Touch ID, Face ID, or your account password.
To find your password, open Keychain Access using Spotlight search or in the Utilities folder. Select "Passwords" from the list on the left and find your wireless network name in the list. Double-click the network name and check the "Show password" box.
iPhones and iPads running iOS 16 and later now feature the long-awaited ability to view Wi-Fi passwords directly in Settings. Previously, this was only possible through jailbreaking or syncing with a Mac. Now, simply go to Wi-Fi settings, tap the information icon (i) next to the network name, and tap the hidden password field.
The system will ask you to confirm your identity via Face ID or Touch ID, after which your password will be displayed in plain text. You can also copy it to the clipboard from here. This makes sharing access between Apple device users as simple and secure as possible.
Security measures and network protection
Understanding how easily stored passwords can be accessed underscores the importance of using strong encryption methods. Security protocol WPA3 is a modern standard replacing the outdated WPA2. It provides better protection against brute-force password attacks.
It's recommended to change your wireless network passwords regularly, especially if you have many guest devices connected to it. A strong password should contain at least 12 characters, including uppercase and lowercase letters, numbers, and special characters. Avoid using dictionary words and birthdays.
⚠️ Warning: Never use brute-forcers to crack passwords for your neighbors' networks. This is illegal and violates criminal law provisions on unauthorized access to computer information. All described methods are intended only for restoring access to your own networks.
It's also worth disabling WPS (Wi-Fi Protected Setup) if you don't use it regularly. This protocol simplifies connection, but has known vulnerabilities that allow attackers to recover the PIN code and gain access to the network in a short time.
For additional security, you can set up a guest network. This will create an isolated Wi-Fi segment for visitors, preventing access to your personal files, printers, and other smart home devices on the main network.
Is it possible to find out the password if the computer is not connected to the network?
No, if the computer has never connected to this network and hasn't saved a profile, it won't be possible to find the password using standard Windows or macOS tools. At least one successful login or physical access to the router is required.
What should I do if I forgot my router admin password?
If you've changed your router's password and forgotten it, the only way to reset it is to press the reset button on the router. This will restore all settings to factory defaults, including the network name and Wi-Fi password found on the sticker.
Is it safe to store passwords in your browser?
Modern browsers encrypt saved passwords, but access to them is often protected only by the OS account password. For maximum security, it is recommended to use specialized password managers with a master password.
Why doesn't the router accept the new password?
Make sure you're using the correct encryption type (usually WPA2-PSK/AES). Some older devices may not support newer standards or special characters in the password. Try changing the password to a simpler one (letters and numbers only) to test.