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).
إثبات هويتك
- المصادقة تعني إثبات أنك من تدعي أنه. هناك ثلاث طرق كلاسيكية:
- شيء تعرفه (كلمة مرور)، شيء تملكه (هاتف)، شيء أنت عليه (بصمة الإصبع).
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.
تسجيلات دخول أقوى
- البيومتركس — مثل بصمات الأصابع أو مسح الوجه؛ يصعب سرقتها، لكنها ليست مثالية.
- التحقق بخطوتين (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 الفكرة الكبرى 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. · اضغط تشغيل لرؤية المخرجات هنا.
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. · اضغط تشغيل لرؤية المخرجات هنا.