LogoProgramming & Artificial Intelligence
Learning Hub
Chapter 2 • Lesson 2-1

Cryptographic Technologies and Authentication

Protecting communication and accounts with cryptography, digital certificates, and multi-factor authentication.

Content: Scenarios or stories may be teaching examples where marked in the material.

Core Idea

HTTPS combines public-key cryptography for safe key sharing with common-key cryptography for fast data transfer. Authentication adds identity checking.

How HTTPS Works

StageWhat happens?Method
ConnectionThe server sends a digital certificate and public key; the browser verifies the server through a CA.Public-key Cryptography
Key ExchangeThe communication key is shared securely.Public-key Cryptography
Data CommunicationData is then transferred quickly using the shared key.Common-key Cryptography

Multi-factor Authentication

MFA (Multi-factor Authentication) combines two or more different factors: knowledge, possession, and biometric.

Important: two passwords are not MFA because both are knowledge factors.

Key Security Technologies

  • Encryption: keeps content private.
  • Digital Signature: detects tampering and supports non-repudiation.
  • Digital Certificate: proves a site is genuine.
  • MFA: blocks unauthorized logins.

Key Terms

  • HTTPS — Hypertext Transfer Protocol Secure
  • HTTP — Hypertext Transfer Protocol
  • TLS — Transport Layer Security
  • CA — Certificate Authority
  • MFA — Multi-factor Authentication
  • Digital Signature
  • Digital Certificate
  • Non-repudiation

Two Scenarios

Scenario 1: An online shop uses HTTPS, a digital certificate, and MFA together.
Scenario 2: A stolen password is not enough because a one-time code is required on the user's phone.

Very Short Story

A locked box protects the message, a trusted certificate proves the destination, and a second factor guards the account. Security comes from combining protections.
محتوى الدرس: قد تتضمن المادة سيناريوهات أو قصصًا تعليمية لتقريب الفكرة.

الفكرة الأساسية

الأمان على الإنترنت لا يعتمد على تقنية واحدة. في اتصال HTTPS (Hypertext Transfer Protocol Secure — بروتوكول نقل النص التشعبي الآمن) يتم استخدام التشفير بالمفتاح العام لمشاركة مفتاح بأمان، ثم التشفير بالمفتاح المشترك لنقل البيانات بسرعة، مع استخدام المصادقة للتحقق من هوية المستخدم أو الخدمة.

كيف يعمل HTTPS؟

المرحلةماذا يحدث؟الطريقة
Connectionالخادم يرسل Digital Certificate ومفتاحًا عامًا، والمتصفح يتحقق من الخادم عبر CA.Public-key Cryptography
Key Exchangeيتم مشاركة مفتاح الاتصال بأمان.Public-key Cryptography
Data Communicationتُنقل البيانات بسرعة باستخدام المفتاح المشترك.Common-key Cryptography

Multi-factor Authentication

MFA (Multi-factor Authentication — المصادقة متعددة العوامل) تجمع عاملين أو أكثر من: Knowledge مثل كلمة المرور، Possession مثل الهاتف، Biometric مثل بصمة الإصبع.

مهم: استخدام كلمتي مرور ليس MFA لأنهما من نفس عامل Knowledge.

تقنيات الأمان ووظيفتها

  • Encryption — التشفير: يمنع الآخرين من قراءة المحتوى.
  • Digital Signature — التوقيع الرقمي: يكشف العبث والانتحال ويوفر Non-repudiation.
  • Digital Certificate — الشهادة الرقمية: يثبت أن الموقع أو الطرف حقيقي.
  • MFA: يمنع تسجيل الدخول غير المصرح به.

المصطلحات والاختصارات للحفظ

  • HTTPS — Hypertext Transfer Protocol Secure — بروتوكول نقل النص التشعبي الآمن.
  • HTTP — Hypertext Transfer Protocol — بروتوكول نقل النص التشعبي.
  • TLS — Transport Layer Security — أمان طبقة النقل.
  • CA — Certificate Authority — جهة إصدار/اعتماد الشهادات.
  • MFA — Multi-factor Authentication — المصادقة متعددة العوامل.
  • Digital Signature — التوقيع الرقمي.
  • Digital Certificate — الشهادة الرقمية.
  • Non-repudiation — عدم التنصل.

سيناريوهان لتوصيل الفكرة

السيناريو 1 — متجر إلكتروني:
دخلت سارة موقعًا للشراء. المتصفح تحقق من الشهادة الرقمية وفتح اتصال HTTPS مشفرًا. عند تسجيل الدخول طلب الموقع كلمة المرور ثم رمزًا على الهاتف.
السيناريو 2 — كلمة مرور مسرّبة:
عرف مهاجم كلمة مرور أحمد، لكنه لم يستطع دخول حساب البنك لأن البنك طلب One-Time Password على هاتف أحمد.

قصة قصيرة جدًا

أرسل كريم رسالة داخل صندوق مقفول. مفتاح آمن سلّم السر، ومفتاح سريع نقل الرسائل، وعند باب الحساب طلب الحارس كلمة المرور والهاتف معًا. فهم كريم أن الأمان الحقيقي يأتي من دمج أكثر من حماية.