Hiển thị mật khẩu Wi-Fi (Network Security Key) trên Windows 10/11
Cách 1: Network Connections (ncpa.cpl) – Chuẩn, luôn hoạt động
- Win + R → gõ
ncpa.cpl→ Enter. - Chuột phải adapter Wi-Fi (hoặc "Wi-Fi 2", "Wi-Fi 3") → chọn Status.
- Cửa sổ "Wi-Fi Status" → bấm nút Wireless Properties.
- Tab Security → tick ô Show characters.
- Ô Network security key sẽ hiển thị mật khẩu rõ ràng.
Cách 2: Settings App (Windows 10 1903+ / 11)
- Win + I → Network & Internet → Wi-Fi.
- Cuộn xuống → Hardware properties (hoặc Manage known networks → chọn mạng → View).
- Tìm mục Network security key → bấm biểu tượng mắt (👁) hoặc tick Show.
Cách 3: Command Line (PowerShell Admin) – Nhanh cho IT/Automation
# Liệt kê tất cả profile Wi-Fi đã lưu
netsh wlan show profiles
# Xem mật khẩu của 1 profile cụ thể
netsh wlan show profile name="Tên_SSID_Chính_Xác" key=clear
# Kết quả: Tìm dòng "Key Content" = Mật khẩu Wi-Fi
Lưu ý: Cần PowerShell/CMD Run as Administrator.
Độ dài ký tự khóa bảo mật (WPA/WPA2/WPA3)
| Loại | Độ dài Passphrase (ASCII) | Độ dài PSK Raw (Hex) |
|---|---|---|
| WPA / WPA2-Personal | 8 - 63 ký tự | 64 ký tự hex (256-bit) |
| WPA3-Personal (SAE) | 8 - 63 ký tự | 64 ký tự hex (256-bit) |
| WEP (Đã lỗi thời) | 5 hoặc 13 ký tự ASCII | 10 hoặc 26 ký tự hex (40/104-bit) |
Khuyến nghị: Dùng Passphrase ≥ 12 ký tự, phức tạp (chữ hoa, thường, số, ký tự đặc biệt).
Ẩn/Hiện ký tự mặc định (Registry – Nâng cao)
Mặc định Windows cho phép "Show characters". Để bắt buộc ẩn (Policy công ty):
- Win+R →
regedit. - Điều hướng:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Network Connections. - Tạo DWORD (32-bit)
HideCharacters=1. - Reboot hoặc restart Explorer.
Cảnh báo: Chỉ làm nếu hiểu Registry. Sai có thể gây lỗi hệ thống.
Khắc phục lỗi "Show characters" không hiện / mờ (Greyed out)
- Quyền Admin: Chạy Settings/ncpa.cpl/PowerShell as Administrator.
- Group Policy chặn:
gpedit.msc→ Computer Config → Admin Templates → Network → Network Connections → "Prohibit showing characters for network security key" → Disabled/Not Configured. - Profile bị hỏng:
netsh wlan delete profile name="SSID"→ Kết nối lại. - Driver Wi-Fi lỗi: Update driver từ website hãng (Intel, Realtek, MediaTek, Qualcomm).
Tương tự trên macOS & Linux
- macOS: Keychain Access → System/iCloud → Passwords → Show password (cần pass Mac).
- Linux (NetworkManager): Settings → Wi-Fi → ⚙️ → Security → Show password. Hoặc CLI:
sudo nmcli -s connection show "SSID"hoặcsudo cat /etc/NetworkManager/system-connections/SSID.nmconnection.
Tóm tắt
Để hiển thị ký tự khóa bảo mật mạng trên Windows: Dùng ncpa.cpl → Status → Wireless Properties → Security → Show characters (Cách chuẩn nhất). Hoặc PowerShell Admin: netsh wlan show profile name="SSID" key=clear. Độ dài passphrase WPA2/WPA3: 8-63 ký tự ASCII.