Computer >> Hướng Dẫn Máy Tính >  >> Kết Nối Mạng >> An Ninh Mạng

Khóa bảo mật mạng (Network Security Key) là dãy số nào? Độ dài, định dạng và cách xem

Khóa bảo mật mạng là "số" hay "chữ"?

Khóa bảo mật mạng (Network Security Key / Wi-Fi Password / WPA Key / Passphrase) là một chuỗi ký tự (string) – có thể chứa: chữ cái (a-z, A-Z), số (0-9), ký tự đặc biệt (!@#$%^&*...), khoảng trắng (trong WPA2/WPA3 passphrase). Không phải chỉ là "số" (numeric only) trừ khi dùng WEP (hexadecimal) hoặc WPS PIN (8 chữ số).

Độ dài & Định dạng theo chuẩn mã hóa

ChuẩnĐộ dài khóa (Passphrase)Định dạngGhi chú
WEP-6410 ký tự Hex (0-9, A-F)
hoặc 5 ký tự ASCII
Hex / ASCIIĐã lỗi thời, không dùng.
WEP-12826 ký tự Hex
hoặc 13 ký tự ASCII
Hex / ASCIIĐã lỗi thời, không dùng.
WPA-Personal (TKIP)8 - 63 ký tự ASCIIPassphrase (printable ASCII)Đã lỗi thời (TKIP weak).
WPA2-Personal (AES/CCMP)8 - 63 ký tự ASCIIPassphrase (printable ASCII)Tiêu chuẩn hiện tại. Khuyến nghị ≥ 12-16 ký tự phức tạp.
WPA3-Personal (SAE/AES-GCMP)8 - 63 ký tự ASCIIPassphrase (printable ASCII)Mạnh nhất hiện nay. Chống offline dictionary attack.
WPA2/WPA3 Enterprise (802.1X)Không dùng PSK. Dùng EAP credentials (user/pass, cert, token).Username/Password / CertificateDoanh nghiệp, RADIUS server.
WPS PIN8 chữ số (numeric)PIN (Protocol design flaw → brute-force)TẮT WPS trên router.

Cách xem khóa bảo mật (Network Security Key) trên các thiết bị

Windows 10/11

  1. Win+I → Network & Internet → Wi-Fi → Hardware properties / Manage known networks → chọn SSID → Network security key → Show.
  2. Hoặc: Win+R → ncpa.cpl → Wi-Fi Status → Wireless Properties → Security → Show characters.
  3. PowerShell (Admin): netsh wlan show profile name="SSID" key=clear → xem dòng Key Content.

macOS

  1. Mở Keychain Access (⌘+Space → Keychain).
  2. Category: Passwords / System → tìm SSID → nhấn đúp → Show password → nhập pass admin/TouchID.

Linux (NetworkManager)

# CLI (cần sudo)
sudo nmcli -s -g 802-11-wireless-security.psk connection show "TEN_SSID"
# Hoặc đọc file
sudo cat /etc/NetworkManager/system-connections/TEN_SSID.nmconnection | grep psk=

Android 10+

Settings → Network & Internet → Wi-Fi → bánh răng cạnh SSID → Share → QR code + mật khẩu text.

iOS 16+

Settings → Wi-Fi → (i) cạnh SSID → Copy Password (FaceID/TouchID) → paste vào Notes.

Trên Router/Modem

  • Nhãn dán mặt dưới/sau: WPA Key / Passphrase / WiFi Password / PIN.
  • Web UI: 192.168.1.1 / tplinkwifi.net / routerlogin.net / router.asus.com → Wireless → Security → Pre-Shared Key / Passphrase.

Mẹo tạo khóa mạnh & quản lý

  • Dùng Passphrase 4-5 từ ngẫu nhiên: correct-horse-battery-staple (dễ nhớ, entropy cao).
  • Hoặc Password Manager (Bitwarden, 1Password, KeePass, Apple Passwords) sinh random 20+ ký tự.
  • Không dùng: tên, ngày sinh, số điện thoại, "12345678", "password", "admin123", tên công ty.
  • Đổi định kỳ 6-12 tháng hoặc khi nghi ngờ rò rỉ (staff nghỉ, vendor access, breach tin tức).
  • Lưu trữ an toàn: Password Manager + Backup offline (giấy, USB encrypted).

Tóm tắt

  • Network Security Key = Mật khẩu Wi-Fi = Chuỗi ký tự (không chỉ số).
  • WPA2/WPA3: 8-63 ký tự ASCII, khuyến nghị ≥12-16 ký tự phức tạp.
  • WEP: Hex 10/26 ký tự (ĐỪNG DÙNG).
  • WPS PIN: 8 chữ số (ĐỪNG DÙNG, TẮT WPS).
  • Xem khóa: Windows (ncpa.cpl/netsh), macOS (Keychain), Linux (nmcli), Android (Share QR), iOS (Copy Password), Router (Label/Web UI).