How to Quickly Share a Wi-Fi Password from a MacBook: All the Working Methods

You're sitting in a cafe with a friend who asks for the Wi-Fi password, and you've already forgotten where you wrote down the 20-character combination. Or a colleague comes in with Android-smartphone, and you only have MacBook Pro at hand. Sound familiar? Luckily, macOS offers several ways to share a network password without entering it manually - from the standard AirDrop to little-known terminal functions.

In this article we will analyze all current methods transferring Wi-Fi password with MacBook to other devices: from official solutions Apple to bypasses for Windows And AndroidWe'll pay special attention to safety nuances—why some methods can be dangerous, and how to minimize the risks. We'll also find out why sometimes macOS refuses to show saved passwords, and what to do about it.

1. Standard method: via macOS settings

The most obvious method is to look up the password in system settings. It works on all versions. macOS from Mojave (10.14) and newer, but requires administrator rights. Here's how:

  1. Open Programs → Utilities → Keychain (or find via Spotlight on request "Bundle").
  2. In the left menu, select System, then Passwords.
  3. Find the name of your Wi-Fi network in the list and double-click on it.
  4. Check the box Show password and enter your account password Mac.

Now you will see the password in the field Show password. It can be copied (Cmd+C) and send it via any messenger. But there's a catch:

⚠️ Note: If your network uses enterprise authentication (for example, in offices or universities), the password in the keychain may appear as a set of random characters. This is normal—it's macOS encrypts corporate data.

For home networks, this method is secure, but not always convenient. For example, if you want to share a password with a guest, you'll have to either spell it out or send it over unsecured channels (which is unsafe). So, let's consider alternatives.

📊 Which password sharing method do you use most often?
I dictate orally
I'm sending it via messenger.
I use a QR code
Other

2. Quick transfer via AirDrop (Apple devices only)

If you and the recipient have devices Apple (For example, MacBook And iPhone), the fastest way is to use AirDropThis method works without manually entering a password and takes less than 10 seconds. Algorithm:

  1. Make sure both devices are enabled. Wi-Fi And Bluetooth.
  2. On MacBook open Settings → Wi-Fi.
  3. Find your network in the list and click on the icon i (information) next to its name.
  4. In the window that opens, click Share password and select the recipient's device via AirDrop.

On iPhone or another Mac A notification will appear prompting you to connect to the network. Advantages of this method:

  • 🔒 Safely: the password is not transmitted in clear text, but a protocol is used Apple Wireless Direct Link (AWDL).
  • Instantly: connection occurs automatically, without any additional actions.
  • 🍎 Integration: works even if the devices are linked to different networks Apple ID.

However, there are limitations:

  • 🚫 Doesn't work with Android or Windows.
  • 📶 Both devices must be within range Bluetooth (up to 10 meters).
  • 🔄 Required macOS Monterey (12.0) or later and iOS 15+ on mobile devices.

☑️ Preparing to transfer via AirDrop

Completed: 0 / 4

3. Generate QR codes for any device

If you need to share a password with a user Android or Windows, the universal solution is to generate QR codeYou don't need any third-party programs for this: built-in tools are sufficient. macOS and the terminal. Here are the step-by-step instructions:

Open the app Terminal (through Spotlight or Programs → Utilities) and enter the command:

security find-generic-password -wa "YOUR_NETWORK_NAME" | qrencode -t ANSIUTF8

Replace YOUR_NETWORK_NAME The actual name of your Wi-Fi network. The system will ask for an administrator password—enter it. After a few seconds, a QR code in the form of symbols will appear in the terminal.

To get a graphic QR code:

  1. Copy the password from Keychains (see section 1).
  2. Go to the website QR Code Monster (or any other generator).
  3. In the field Text enter format string:
    WIFI:S:NETWORK_NAME;T:WPA;P:PASSWORD;;
  4. Download the QR code and show it to another user.

When you scan this code, your smartphone will automatically prompt you to connect to the network. Advantages of this method:

  • 🌍 Powered by any devices with a camera.
  • 🛡️ The password is not transmitted in clear text (only via encrypted QR code).
  • 📱 Does not require installation of additional applications on MacBook.
⚠️ Warning: Do not generate Wi-Fi QR codes on untrusted websites. Some services may store the data you enter (including passwords) in their databases. Use only trusted tools or local solutions (e.g. qrencode in the terminal).
What to do if the terminal displays the error "Could not find password item"

This means that macOS didn't save the password for this network (for example, if you connected through the enterprise portal). Try:

1. Reconnect to the network and enter the password manually.

2. Check the network name - it is case sensitive!

3. Use the alternative method from section 4.

4. Alternative methods for advanced users

If standard methods do not work (for example, due to restrictions on the corporate network), you can extract the password through console commands or configuration files. These methods require terminal knowledge but provide more control.

Method 1: Via configuration file

Wi-Fi passwords in macOS are stored in encrypted form in a file /Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plistTo extract them:

defaults read /Library/Preferences/SystemConfiguration/com.apple.airport.preferences | grep -A 1 "SSID_STR" | grep -B 1 "YOUR_NETWORK_NAME"

This command will display the encrypted password. To decrypt it, you will need a utility. security (see section 1).

Method 2: Via NetworkSetup (for older versions of macOS)

IN macOS High Sierra (10.13) and below you can use the command:

networksetup -getairportnetwork en0

Replace en0 to your network interface (you can find it out using the command networksetup -listallhardwareports). However, this method will only show the network name, not the password.

To automate the process, you can write a simple script in Bash:

#!/bin/bash

NETWORK_NAME=$1

PASSWORD=$(security find-generic-password -wa "$NETWORK_NAME" 2>&1)

echo "Password for network $NETWORK_NAME: $PASSWORD"

Save it as get_wifi_password.sh, make it executable (chmod +x get_wifi_password.sh) and run it with the network name as an argument.

⚠️ Warning: Storing passwords in text files or scripts — security riskAfter use, delete temporary files with the command shred -u file_name.

5. Problems and solutions: why macOS won't show your password

Sometimes macOS refuses to display your saved password, even if you're sure you have one. Let's look at common causes and how to fix them:

Problem Possible cause Solution
The password is not displayed in Keychain. The network was added via the enterprise portal (802.1X) Please use the corporate portal or contact your network administrator.
Error: "Could not find element" There is a typo in the network name or the password is not saved. Check the case of the network name. Reconnect with the "Remember this network" checkbox checked.
The "Show password" button is inactive You do not have administrator rights Log in with an account with permissions admin or request a password from the administrator
The password is displayed as "" The network uses WPA3-Enterprise or PEAP The password is not stored locally - re-authentication is required

If none of the methods worked, try reset network settings:

  1. Go to Settings → Network.
  2. Select your connection and click (minus) to remove it.
  3. Reconnect by entering the password manually (remember to check the "Remember network" box).

6. Security: How to share a password without risks

Sharing a Wi-Fi password is always a tradeoff between convenience and security. Here are some key rules to help minimize the risks:

  • 🔐 Never send your password in clear text. via messengers or email. Use AirDrop, QR code or specialized applications like 1Password.
  • 🕒 Limit password expiration timeMost routers allow guest access with a time limit (e.g. 2 hours).
  • 📡 Use WPA3If your router supports WPA3-Personal, enable it in the settings. This protocol protects against dictionary attacks.
  • 🚫 Don't share your main network password. With temporary guests. Set up a separate guest network with limited access to local devices.

Important: If you are transmitting a password via QR code, make sure that the scanning device does not save the history of QR codes. Some applications (for example, QR Scanner (for iOS) can store scanned data, including passwords.

For maximum security, consider alternative methods of granting access:

  • 🔄 WPS (Wi-Fi Protected Setup): Press the WPS button on the router and the device will connect without entering a password. Minus: vulnerability to brute force attacks.
  • 📱 Router applications: Many manufacturers (eg TP-Link, ASUS) offer mobile applications where you can temporarily open access to the network.

7. Common mistakes and how to avoid them

When sharing a Wi-Fi password, users often encounter typical errors that lead to connection issues. Here are the most common ones:

  • 🔤 Typos in the network name. macOS case sensitive: MyWiFi And mywifi — these are two different networks. Always copy the network name from Settings → Wi-Fi.
  • 🔄 Using an outdated passwordIf you changed the password on your router but didn't reconnect to the network, macOS may be storing an old version. Solution: Remove the network from your keychain and reconnect.
  • 📵 Bluetooth is disabled when using AirDropFor work AirDrop required and Wi-Fi, And BluetoothIf the transfer does not start, check both modules.
  • 🌐 Attempting to share a password for a hidden networkHidden networks (with SSID broadcast disabled) are not displayed in standard dialogs. macOSTo share them, first make the network visible in your router settings.

Another common problem is - devices do not connect after transmitting the passwordThe reasons may be as follows:

  • 🔒 The router has tethering enabled MAC address (need to add a new one MAC to the white list).
  • 📡 The network operates in the range 5 GHz, and the device only supports 2.4 GHz (check your router settings).
  • ⚡ The router is in the "Security Mode" mode. 802.11r (Fast Transition), which is not supported by older devices.

FAQ: Answers to frequently asked questions

Is it possible to share a Wi-Fi password from a MacBook to a Windows PC?

Yes, but not directly through AirDropOptions:

  1. Generate QR code (see section 3) and scan it with your camera Windows 11 or applications QR Code Scanner.
  2. Copy the password from Keychains and send it through a secure channel (for example, Telegram with encryption or Signal).
  3. Use guest network on a router with a simple password.

For Windows 10/11 There are also utilities like WiFi Password Revealer, but they require installation.

Why do gibberish appear in the terminal when generating a QR code?

This happens due to the lack of utility qrencodeInstall it through Homebrew:

brew install qrencode

If Homebrew not installed, download qrencode With official website.

Alternative: Use online generators (see section 3), but avoid dubious services.

How do I share a password if my MacBook isn't connected to the network right now?

If the network is saved in Keychain, But MacBook not connected to it at the moment:

  1. Open A bunch of keys and find the network manually (see section 1).
  2. Use the command in the terminal:
    security find-generic-password -wa "NETWORK_NAME" | pbcopy

    This will copy the password to the clipboard.

If the network is not saved, reconnect to it by entering the password manually.

Is it possible to revoke access after the password has been transferred?

Technically, no—after you've given the password, you can't remotely disconnect the device from the network. But you can:

  • 🔄 Change password on the router (will disconnect all users).
  • 🚫 Add a device to the blacklist By MAC address (in the router settings).
  • Use a guest network with a time limit.

Some routers (eg. ASUS RT-AX88U) support the function Client Isolation, which blocks interaction between devices on the same network.

Is it safe to use third-party password extractor apps?

Use with caution. Apps like WiFi Password Viewer or Keychain Access can:

  • 🛡️ Be legitimate, but require access to Keychain.
  • 🚨 Contain malicious code, especially if they were not downloaded from Mac App Store.
  • 📤 Send data to the developer's servers (check permissions!).

Recommendation: Use built-in tools (Bunch of keys, Terminal) or proven open source utilities, such as Wifi Password from GitHub.