Download Cryptography and Access Control Study Notes and more Schemes and Mind Maps Information Security and Markup Languages in PDF only on Docsity!
Notes on Cryptography Basics and
Authentication and Access Control
Study Notes
May 14, 2025
Contents
1 Cryptography Basics................................ 2 1.1 Introduction to Cryptography........................ 2 1.2 Symmetric vs. Asymmetric Encryption.................. 2 1.3 Hashing..................................... 3 1.4 Digital Signatures............................... 3
2 Authentication and Access Control...................... 4 2.1 Authentication Methods........................... 4 2.2 Access Control Models............................ 5
3 Conclusion...................................... 6
1 Cryptography Basics
Cryptography is like a secret code system used to protect information. It en- sures that data stays safe, private, and unchanged when sent over the internet or stored on devices. This section explains what cryptography is, the difference between symmetric and asymmetric encryption, hashing, and digital signatures in simple terms.
1.1 Introduction to Cryptography
Cryptography is the science of hiding information so only the right people can read it. It’s used to protect emails, passwords, online payments, and more.
- Why It’s Important : Without cryptography, hackers could easily steal sen- sitive data like bank details or personal messages.
- Key Goals : - Confidentiality : Only authorized people can read the data. - Integrity : Data isn’t changed or tampered with. - Authentication : Confirms the identity of the sender or receiver. - Non-repudiation : Proves who sent the data, so they can’t deny it.
- Example : When you send a message on WhatsApp, cryptography ensures only the recipient can read it.
1.2 Symmetric vs. Asymmetric Encryption
Encryption turns readable data into unreadable code using a key. There are two main types: symmetric and asymmetric encryption.
- Symmetric Encryption : - What It Is : Uses the same key to encrypt and decrypt data. - How It Works : The sender and receiver share a secret key. For exam- ple, if you lock a box with a key, only someone with the same key can unlock it. - Pros : Fast and good for large amounts of data. - Cons : Sharing the key securely is tricky. If someone steals the key, they can read the data. - Example : AES (Advanced Encryption Standard) is used to encrypt files on a USB drive.
- Asymmetric Encryption :
- Why It’s Important : Ensures authenticity (proves who sent it) and integrity (proves it wasn’t altered).
- Example : A software developer signs a program to prove it’s genuine and not tampered with.
- Best Practices : Use trusted algorithms like RSA or DSA for signatures and verify signatures before trusting files or messages.
2 Authentication and Access Control
Authentication and access control are about ensuring only the right people can access systems or data. Authentication checks who you are, and access control decides what you can do.
2.1 Authentication Methods
Authentication verifies a user’s identity before granting access. Common meth- ods include passwords, biometrics, and multi-factor authentication.
- Passwords : - What It Is : A secret word or phrase users enter to log in. - Pros : Easy to use and widely supported. - Cons : Can be guessed or stolen if weak (e.g., “123456”). - Example : Logging into an email account with a password. - Best Practices : Use strong passwords (at least 12 characters, mixing let- ters, numbers, and symbols) and store them securely with a password manager.
- Biometrics : - What It Is : Uses unique physical traits like fingerprints, face scans, or voice recognition. - Pros : Hard to fake and convenient (no need to remember anything). - Cons : Can’t be changed if compromised (e.g., you can’t change your fingerprint). - Example : Unlocking a smartphone with a fingerprint scanner. - Best Practices : Combine biometrics with other methods for extra secu- rity.
- Multi-Factor Authentication (MFA) :
- What It Is : Requires two or more methods to verify identity (e.g., pass- word + phone code). - Types : Something you know (password), something you have (phone), something you are (biometric). - Pros : Much harder for hackers to break than single-factor methods. - Example : Logging into a bank account with a password and a code sent to your phone. - Best Practices : Always enable MFA for sensitive accounts like banking or email.
2.2 Access Control Models
Access control decides what authenticated users can do, like read files or change settings. There are three main models: DAC, MAC, and RBAC.
- Discretionary Access Control (DAC) : - What It Is : The owner of a resource (like a file) decides who can access it and what they can do. - How It Works : Permissions are set by the owner, like allowing specific users to read or edit a file. - Pros : Flexible, as owners have full control. - Cons : Risky if owners set weak permissions. - Example : In Windows, you can share a folder with specific users and set read-only or edit access.
- Mandatory Access Control (MAC) : - What It Is : A central authority (like an admin) sets strict access rules based on security levels. - How It Works : Users and resources have labels (e.g., “top secret” or “public”). Only users with matching or higher clearance can access resources. - Pros : Very secure, used in high-security places like military systems. - Cons : Less flexible, hard to manage for large systems. - Example : A government server restricts access to classified files based on user clearance levels.
- Role-Based Access Control (RBAC) :