Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบเครือข่าย >> ความปลอดภัยเครือข่าย

Network Security Key คืออะไร? วิธีหา และจำนวนตัวอักษร

Network Security Key คืออะไร?

Network Security Key = Wi-Fi Password = WPA Key = WPA2 Passphrase = Wireless Password = Security Key เป็นรหัสผ่านที่ใช้ในการยืนยันตัวตนและเข้ารหัสการเชื่อมต่อเครือข่ายไร้สาย (Wi-Fi) ระหว่างอุปกรณ์ (Client) กับจุดเข้าถึง (Access Point/Router)

วิธีหา Network Security Key

1. บน Windows 10/11 (ที่เชื่อมต่ออยู่แล้ว)

  1. Settings > Network & Internet > Advanced network settings > Network and Sharing Center
  2. คลิกชื่อ Wi-Fi (SSID) > Wireless Properties
  3. แท็บ Security > ติ๊ก Show characters
  4. ช่อง Network security key = รหัสผ่าน

2. ผ่าน Command Prompt / PowerShell

# CMD
netsh wlan show profiles
netsh wlan show profile name="YourSSID" key=clear
# Key Content = Network Security Key

# PowerShell (Export ทั้งหมด)
(netsh wlan show profiles) | Select-String "\:(.+)$" | ForEach-Object {
    $ssid=$_.Matches[0].Groups[1].Value.Trim()
    $r=netsh wlan show profile name="$ssid" key=clear
    if($r -match "Key Content\s+:\s(.+)"){[PSCustomObject]@{SSID=$ssid;Password=$matches[1].Trim()}}
}|Format-Table -AutoSize

3. บน Router/Modem (สติ๊กเกอร์ หรือ Web UI)

  • สติ๊กเกอร์ด้านล่าง/หลัง: Password / Passphrase / WPA2 Key / Wireless Password / Security Key
  • Web Interface: 192.168.1.1 / tplinkwifi.net / router.asus.com / routerlogin.net > Wireless > Security > Passphrase

4. บน macOS

  1. Keychain Access (Cmd+Space > Keychain) > System > Passwords
  2. ค้นหา SSID > ดับเบิลคลิก > Show password > ใส่รหัสผ่าน Mac

5. บน Android 10+ / iOS 16+

  • Android: Settings > Network & Internet > Wi-Fi > Saved networks > SSID > Share > QR Code + Password
  • iOS: Settings > Wi-Fi > (i) ข้าง SSID > Password > FaceID/TouchID

Network Security Key มีกี่ตัวอักษร? (Length & Format)

Security ModeKey Formatความยาว
WEP-64Hex (0-9, A-F)10 ตัวอักษร (40-bit)
WEP-128Hex26 ตัวอักษร (104-bit)
WPA/WPA2-Personal (PSK)ASCII (Printable chars)8-63 ตัวอักษร
WPA/WPA2-Personal (PSK)Hex64 ตัวอักษร (256-bit)
WPA3-Personal (SAE)ASCII8-63 ตัวอักษร (แนะนำ 12+)

หมายเหตุ: WPA2/WPA3 ใช้ PBKDF2(SHA-1, 4096 rounds) แปลง Passphrase → PMK (256-bit) ไม่ได้ใช้ Passphrase เข้ารหัสโดยตรง

คำถามพบบ่อย (FAQ)

Network Security Key เหมือน Wi-Fi Password ไหม?
ใช่ ทั้งคู่หมายถึงสิ่งเดียวกัน 只是名字不同
Default Network Security Key คืออะไร?
รหัสโรงงาน พิมพ์บนสติ๊กเกอร์/คู่มือ ใช้ตอนติดตั้งครั้งแรก ควรเปลี่ยนทันที
ทำไม Windows เรียกว่า "Network Security Key" ไม่ใช่ "Password"?
เป็น术语ทางเทคนิค (Technical Term) เน้นฟังก์ชัน: Key สำหรับ Security (Authentication + Encryption Key Derivation)
SSID และ Security Key หาได้จากที่เดียวกันไหม?
ใช่ ทั้งคู่อยู่บนสติ๊กเกอร์เราเตอร์ และหน้า Wireless Settings ของ Web UI
WPA2 Passphrase ต้อง Complex ไหม?
ไม่บังคับ แต่ แนะนำ 12+ ตัวอักษร สุ่ม (Upper, Lower, Digit, Symbol) เพื่อกัน Brute-force/Dictionary Attack

แนวทางปฏิบัติที่ดี (Best Practices)

  • ใช้ WPA2-AES (CCMP) หรือ WPA3-SAE (GCMP) เท่านั้น
  • ตั้ง Passphrase 12-20+ ตัวอักษร สุ่ม (ใช้ Password Manager สร้าง)
  • เปลี่ยนรหัสเป็นระยะ (6-12 เดือน) หรือเมื่อมีคนลาออก/อุปกรณ์หาย
  • ปิด WPS (PIN Brute-force Vulnerability)
  • ใช้ Guest Network สำหรับแขก/IoT
  • อัปเดต Router Firmware เป็นประจำ