Introduction
Imagine trying to prove who you are before entering a secure place. The challenge is to make sure only the right people get access, using ways that are hard to fake or steal.
Jump into concepts and practice - no test required
Imagine entering a club that requires three checks: you must know the secret password, show your membership card, and have your face recognized by the bouncer. Each check adds a layer of security to make sure you really belong.
┌─────────────────────────────┐ │ Authentication Factors │ ├─────────────┬───────────────┤ │ Something │ Something │ │ You Know │ You Have │ │ (Password) │ (Token/Card) │ ├─────────────┴───────────────┤ │ Something You Are │ │ (Fingerprint/Face) │ └─────────────────────────────┘
something you know in authentication factors?something you have as an authentication factor?user_input = '1234'
stored_pin = '1234'
if user_input == stored_pin:
print('Access granted')
else:
print('Access denied')