Passwords and authentication · รหัสผ่านและการยืนยันตัวตน
Proving who you are
- Authentication means proving you are who you claim to be. There are three classic ways:
- Something you know (a password), something you have (a phone), something you are (a fingerprint).
การพิสูจน์ตัวตนของคุณ
- การยืนยันตัวตน (Authentication) หมายถึงการพิสูจน์ว่าคุณคือคนที่คุณอ้างตัวว่า确实是。มีสามวิธีคลาสสิก:
- สิ่งที่ bạn รู้ (รหัสผ่าน), สิ่งที่คุณ มี (โทรศัพท์), สิ่งที่คุณ เป็น (ลายนิ้วมือ)
Stronger logins
- Biometrics — fingerprints or face scans; hard to steal, but not perfect.
- Two-step verification (2FA) — a password plus a one-time code sent to your phone.
- Even if an attacker steals your password, 2FA stops them logging in.
บัญชีผู้ใช้ที่ปลอดภัยขึ้น
- ชีวมิติ (Biometrics) — ลายนิ้วมือหรือสแกนใบหน้า; ยากที่จะขโมย แต่ไม่สมบูรณ์แบบ
- การยืนยันสองขั้นตอน (2FA) — รหัสผ่าน บวก กับโค้ดครั้งเดียวที่ถูกส่งไปยังโทรศัพท์ของคุณ
- แม้ผู้โจมตีจะขโมยรหัสผ่านของคุณได้ 2FA ก็จะช่วยหยุดไม่ให้เขาเข้าระบบได้
What makes a password strong?
- Length beats everything. Each extra character multiplies the guesses an attacker needs.
- A mix of letters, digits, and symbols helps — but a long passphrase like
correct horse battery stapleis both strong and memorable.
อะไรทำให้รหัสผ่านแข็งแรง?
- ความยาวสำคัญที่สุด字符เพิ่มหนึ่งตัวจะคูณจำนวนการเดาที่ผู้ต้องหาลง
- การใช้ผสมระหว่างตัวอักษร的数字และสัญลักษณ์ช่วยได้ — แต่รหัสผ่านยาวอย่าง
correct horse battery stapleนั้นทั้งแข็งแรง และ จำได้ง่าย
Build a checker
- Below, write a tiny rule: a password is "strong" only if it is long enough and has a digit.
- Real checkers also reject common passwords like
123456andpassword.
Covers: IGCSE 5.3 (authentication), A-Level 6.1, AP CSP Big Idea 5.
สร้างตัวตรวจสอบ
- ด้านล่างนี้ เขียนกฎเล็กๆ น้อยๆ: รหัสผ่านจะถือว่า "แข็งแรง" ก็ต่อเมื่อมีความยาวพอ และ มีตัวเลข
- ตัวตรวจสอบจริงยังปฏิเสธรหัสผ่านทั่วไปอย่าง
123456และpasswordด้วย
ครอบคลุม: IGCSE 5.3 (การยืนยันตัวตน), A-Level 6.1, AP CSP Big Idea 5.
Common mistakes
- Long and unique beats short, complex, but reused.
- Two-factor authentication adds a second, different check.
ข้อผิดพลาดที่พบบ่อย
- ความยาวและความเฉพาะเจาะจง สำคัญกว่าความสั้น ความซับซ้อน แต่ใช้ซ้ำ
- การยืนยันตัวตนสองขั้นตอน เพิ่มการตรวจสอบที่สองที่แตกต่างกัน
Write a simple strength checker. A password is strong if it is at least 8 characters AND contains a digit; otherwise weak. Print the right word for the given password. · เขียนตัวตรวจสอบความแข็งแรงง่ายๆ รหัสผ่านจะเป็น strong หากมี อย่างน้อย 8 ตัวอักษร AND มี ตัวเลข; มิฉะนั้นเป็น weak. พิมพ์คำที่ถูกต้องสำหรับรหัสผ่านที่กำหนดให้
Click Run to see the output here. · คลิก Run เพื่อดูผลลัพธ์ที่นี่
Real checkers also reject common passwords. Improve the rule: if the password is in the common list it is weak no matter what; otherwise apply the old rule (length ≥ 8 AND a digit). Print the verdict. · ผู้ตรวจสอบจริงยังปฏิเสธ รหัสผ่านทั่วไป ปรับปรุงกฎ: หากรหัสผ่านอยู่ในรายการ common มันจะเป็น weak ไม่ว่าอะไร; มิฉะนั้นใช้กฎเก่า (ความยาว ≥ 8 AND มีตัวเลข). พิมพ์คำตัดสิน
Click Run to see the output here. · คลิก Run เพื่อดูผลลัพธ์ที่นี่