Are you trying to connect a new device to your home network, but the system requires a "Wi-Fi security key"? Or have you forgotten your router password and lost the sticker with the code? This situation is familiar to many. Wi-Fi security key — is nothing more than a password for your wireless network, protecting it from unauthorized access. Without it, connecting new devices becomes impossible.
In this article, we will look at what a security key is and where to find it. laptop with Windows 10/11 or MacBook, how to extract it from Android smartphone or iPhone, as well as what to do if you've lost your password. You'll learn about all the methods—from standard settings to using the command line and third-party applications. There are no universal "magic buttons" here, but there are clear instructions for every situation.
What is a Wi-Fi security key and why do I need one?
The term "network security key" is often confusing. It's actually quite simple. Wi-Fi password, which you enter when you first connect your device. It encrypts traffic between the router and your devices, preventing data interception by hackers. Without this key, you can't connect to the network—even if you know its name (SSID).
There are several types of Wi-Fi security, and these determine what your key looks like:
- 🔐 WPA2-PSK (AES) — the most common and reliable standard. The key is a combination of 8–63 characters (letters, numbers, and symbols).
- 🔄 WPA3 — a new generation of security used in modern routers. The password can be more complex, and the connection procedure simpler (for example, via QR code).
- 🚫 WEP — an outdated and unreliable protocol. The key here is shorter (5 or 13 characters in hexadecimal format), but even a novice can easily hack such a network.
If your router supports WPS, then to connect some devices (for example, printers) you can use PIN code instead of a password. However, this doesn't eliminate the need to know the security key itself—it will still be required for smartphones, laptops, and other gadgets.
Where is the security key stored on a Windows laptop?
If your laptop is already connected to Wi-Fi, the password is stored in its memory. There are several ways to retrieve it, from viewing it in the graphical interface to using the command line. Let's look at all the options.
Method 1: Via Windows Settings (Windows 10/11)
This is the simplest method that does not require any special knowledge:
- Open the menu
Start → Settings → Network & Internet. - Select a tab
Wi-Fiand pressManaging known networks. - Click on the name of your network, then -
Properties. - Scroll down to field
Network security keyand pressShow(you will need to enter your Windows account password).
If the password field is grayed out, your account does not have administrator rights. In this case, use command line (method 2).
Method 2: Via Command Prompt (CMD)
This method works on all versions of Windows and does not require administrator rights to view. already saved passwords:
netsh wlan show profile name="NETWORK_NAME" key=clear
Replace NETWORK_NAME to the name of your Wi-Fi (for example, KEENETIC-123). As a result of executing the command in the section Security parameters a line will appear Key content - this is your password.
Launch Command Prompt (Win + R → cmd)
Enter the command with the name of your network
Find the line "Key Contents"
Copy password for new device-->
If the command didn't work, check:
- 🔍 Is the network name spelled correctly (case is important!).
- 📶 Whether the laptop is currently connected to this network or has been connected previously.
- 🛡️ Is your antivirus blocking access to network settings (temporarily disable it).
Method 3: Via PowerShell (CMD alternative)
For lovers PowerShell There is a similar command:
(Get-NetConnectionProfile | Where-Object { $_.Name -eq "NETWORK_NAME" }).GetNetworkConnectivity().Password
This method is less versatile than netsh, but may be useful in some versions of Windows (for example, in Windows 11 with the latest updates).
How to find the Wi-Fi security key on a MacBook
On laptops Apple The procedure is slightly different, but no less simple. The main thing is to have administrator rights or know the account password.
Method 1: Via Keychain Access
MacOS stores all passwords in a special vault - KeychainTo find your Wi-Fi key:
- Open
Programs → Utilities → Keychain. - Enter the name of your network in the search bar.
- Double-click on the found entry and check the box
Show password. - Enter your MacOS account password and the security key will be displayed.
If there's no network entry, the MacBook hasn't connected to it. In this case, you'll need to find the password on another device or reset the router.
Method 2: Via Terminal
For experienced users there is a command for Terminal:
security find-generic-password -wa "NETWORK_NAME"
After entering the command, the system will ask for the account password. Enter it, and the security key will be displayed in the terminal.
How to Find Your Wi-Fi Security Key on Your Phone (Android and iOS)
Unlike laptops, smartphones don't provide direct access to saved Wi-Fi passwords. This is for security reasons. However, there are workarounds, ranging from viewing configuration files to using dedicated apps.
On Android: no root
Without receiving root access You can extract the password only on some models (for example, Xiaomi, Huawei or Samsung with firmware from the manufacturer). Procedure:
- Install a file manager with access to system folders (for example, Solid Explorer or FX File Explorer).
- Go to the folder
/data/misc/wifi/(you will need permission to view system files). - Find the file
WifiConfigStore.xmland open it with a text editor. - There will be a line inside
<string name="PreSharedKey">PASSWORD</string>- this is the security key.
⚠️ Attention: On phones with Android 10+ This method may not work with stock firmware due to security restrictions. Also, some manufacturers (for example, Google Pixel) completely block access to system files without root.
On Android: with root rights
If you have root access, use the app WiFi Password Viewer (available in Google Play). It automatically retrieves all saved Wi-Fi passwords and displays them in a convenient list.
On iPhone (iOS)
On iPhone the situation is even more severe: Apple doesn't provide any legal ways to view saved Wi-Fi passwords. The only options are:
- 🔧 Use jailbreak (not recommended due to security risks).
- 📱 Connect iPhone to MacBook and extract password via
iCloud Keychain(if sync is enabled). - 📋 View the password on another device (laptop, tablet) that connected to this network.
If none of the methods work, the only option left is to reset the router to factory settings (see the section below).
What to do if your security key is lost
If you can't find the password on any device, there are two radical solutions: reset the router or log into its web interface and look for the key there.
Method 1: Reset the router to factory settings
There is a small button on the back of the router. Reset (Sometimes it's recessed and requires a paperclip.) Press and hold it for 10-15 seconds—the device will reboot and return to factory settings.
After reset:
- 🔄 Network name (
SSID) and the password will become standard (indicated on the router sticker). - 📡 You'll have to reconfigure your internet connection (your provider's details are usually included in your contract).
- 🔒 All previously connected devices will be disconnected.
⚠️ Attention: Reset deletes all settings, including port forwarding, parental controls, and guest networks. If you're unsure, it's best to use method 2.
Method 2: View the key in the router's web interface
If you have access to the router via cable or Wi-Fi (for example, from a connected phone), you can access its settings:
- Open your browser and type in the address bar
192.168.0.1or192.168.1.1(the address is indicated on the router sticker). - Enter your login and password (usually
admin/adminoradmin/empty). - Go to the section
Wireless network (Wi-Fi)orWireless Security. - Find the field
PasswordorNetwork Key— the current security key is displayed here.
If you don't remember your router login details, you can find them here:
- 📄 On the sticker on the back of the device.
- 📋 In the instructions for the router (usually included).
- 🌐 On the manufacturer's website (enter the router model in the search).
| Router manufacturer | Standard IP address | Default login/password |
|---|---|---|
| TP-Link | 192.168.0.1 or 192.168.1.1 |
admin/admin |
| ASUS | 192.168.1.1 |
admin/admin |
| Keenetic | 192.168.1.1 |
admin/1234 (or empty password) |
| MikroTik | 192.168.88.1 |
admin/empty |
| Xiaomi | 192.168.31.1 |
No login required, password is on the sticker |
⚠️ Attention: If you changed your router login/password and now don't remember them, your only option is to reset it to factory settings (see Method 1).
How to protect your security key from leakage
A Wi-Fi password leak can lead to unauthorized connections from neighbors, slow internet speeds, or even cyberattacks. To avoid this, follow these simple rules:
- 🔑 Use complex passwords: a combination of 12+ characters with letters, numbers and signs (eg
Green$Tree7!Lion9). - 🔄 Change the key every 3-6 months, especially if guests connected to the network.
- 📵 Disable WPS - This protocol is vulnerable to brute force attacks.
- 👥 Create a guest network for friends and family, so as not to reveal the main password.
- 🛡️ Update your router firmware — Manufacturers regularly patch vulnerabilities.
If you suspect that someone else has connected to your network, check the list of devices in the router's web interface (section DHCP or Connected clients). Unknown MAC addresses You can block or change the password.
How to Check Who's Connected to Your Wi-Fi
In the router's web interface, find the "Connected Devices" or "DHCP Clients" section. You'll see a list of IP and MAC addresses. Compare them with your devices. Unknown addresses can be blocked using the MAC filtering settings.
Common mistakes and how to avoid them
When working with a security key, users often encounter common problems. Here are the most common ones and how to solve them:
- 🚫 "Invalid security key" when connecting:
Check:
- Case sensitive (password is case sensitive!).
- Keyboard language (perhaps you enter letters in English, but the password is in Russian).
- The type of protection in the router settings (for example, if the network is operating in the mode
WPA3, and the device only supportsWPA2).
- 🔌 The WPS button doesn't work.:
Make sure the feature is enabled in your router settings (
Wireless Network → WPS). On some models, the button is only activated for 2 minutes after being pressed. - 📡 The network is visible but does not connect.:
Try:
- Reboot the router (turn it off for 30 seconds).
- Remove the network from the list of saved networks on the device and connect again.
- Change the Wi-Fi channel in the router settings (for example, from
caron6or11).
If your router displays an "Invalid Security Key" error even with the correct password, try changing the encryption type from TKIP on AES in the wireless network settings.
FAQ: Answers to Frequently Asked Questions
Is it possible to connect to Wi-Fi without a security key?
Technically yes, but only if:
- The network is not password protected (open
SSID- extremely unsafe!). - You are using WPS (press the button on the router and connect the device within 2 minutes).
- Do you have QR code to connect (available on some routers with WPA3).
In all other cases, the key is required.
What should I do if I forgot my security key and the sticker on my router has worn off?
Try:
- View the password on a device that is already connected to the network (laptop, smartphone).
- Log in to the router's web interface (if you remember your login/password).
- Reset the router to factory settings (button
Reset). - Contact your provider - some operators (eg Rostelecom or MTS) can restore data under the contract.
Is it possible to find out the security key of someone else's network?
No, unless you own or administer the network. All Wi-Fi hacking methods (such as brute-forcing passwords or exploiting vulnerabilities) WPS) are illegal and are prosecuted under Article 272 of the Criminal Code of the Russian Federation (“Unauthorized access to computer information”).
If you really need to access someone else's network (for example, in a hotel or cafe), ask the administrator for the password.
How do I change my security key to a more secure one?
To change your password:
- Go to the router's web interface (usually
192.168.0.1or192.168.1.1). - Go to the section
Wireless Network → Security Settings. - In the field
PasswordEnter a new key (recommended length: 12+ characters). - Save the settings and reconnect all devices.
Example of a strong password: Blue$Sky2026!Moon.
Why do some devices not connect after changing the key?
This happens because older devices retain the previous password. To fix:
- Remove the network from the list of saved networks on your device.
- Please reconnect using the new key.
- If the device is old (for example, a printer or Smart TV), check if it supports the current encryption type (
WPA2/WPA3).