Cryptography Fundamentals
- 71Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is cryptography?
71 questions
- 1
What is cryptography?
Model answer
Cryptography is the use of algorithms and keys to transform readable data into an unreadable form to protect it from unauthorized access.
Explanation
It protects digital information by converting plaintext into ciphertext and allowing authorized users to recover it.
- 2
What are plaintext and ciphertext?
Model answer
Plaintext is readable original data, while ciphertext is the scrambled, unreadable result of encryption.
Explanation
Encryption transforms plaintext into ciphertext, which can be restored through decryption.
- 3
What is encryption, and what is decryption?
Model answer
Encryption uses an algorithm and key to scramble readable data, while decryption uses a key to restore it to readable form.
Explanation
The two processes allow authorized users to protect and later access information.
- 4
What role does a cryptographic key play?
Model answer
A key controls how data is encrypted and decrypted. Without the correct key, the protected data remains inaccessible.
Explanation
The algorithm performs the transformation, while the key determines the specific transformation used.
- 5
How does steganography differ from cryptography?
Model answer
Steganography hides the existence of a message, whereas cryptography transforms the message so its contents cannot be understood without the key.
Explanation
Steganography conceals data inside another file, such as an image, audio file, or video.
- 6
How can data be hidden using steganography?
Model answer
Data can be divided and placed in unused portions of an image, audio, or video file, including header fields or spaces between metadata sections.
Explanation
These locations allow the hidden data to remain undetected while the file continues to appear normal.
- 7
Why is cryptography important in everyday digital activities?
Model answer
It protects private information during activities such as communication, file storage, and online transactions by preventing unauthorized access or alteration.
Explanation
Cryptography supports trust and reliability in digital interactions.
- 8
What is confidentiality in cryptography?
Model answer
Confidentiality ensures that only authorized people can view information.
Explanation
For example, encrypting a document and giving the key only to approved users preserves its confidentiality.
- 9
What is integrity, and how does cryptography support it?
Model answer
Integrity means that data remains accurate and unchanged from its original form. Hashes and digital signatures can help detect unauthorized changes.
Explanation
Integrity assures the recipient that data arrived as it was sent.
- 10
What is authentication in cryptography?
Model answer
Authentication verifies the identity of a sender, device, or other party.
Explanation
It functions like an identity check, helping a recipient determine who sent or created information.
- 11
What is non-repudiation?
Model answer
Non-repudiation provides evidence that an action or message was associated with a particular party, making it difficult for that party to deny the action later.
Explanation
Digital signatures can help establish responsibility for a message or transaction.
- 12
What is obfuscation in the context of security?
Model answer
Obfuscation makes data or its protective mechanisms difficult for unauthorized people to understand.
Explanation
Security through obscurity relies on making details difficult to discover, although it is a security benefit distinct from confidentiality and integrity.
- 13
Leila encrypts a document so that only people with the key can view it. Which security property does this provide, and why?
Model answer
It provides confidentiality because encryption restricts access to people who possess the correct key.
Explanation
The protection concerns who can read the information rather than whether it was changed or who sent it.
- 14
What is a hash algorithm?
Model answer
A hash algorithm converts data into a fixed representation called a hash value, digest, or digital fingerprint.
Explanation
The digest represents the contents of the input and can be used to compare versions of the data.
- 15
Why is hashing useful for checking data integrity?
Model answer
If the data changes, its hash value should also change, allowing the original and received hash values to be compared.
Explanation
Matching hashes provide evidence that the data has not been altered.
- 16
Why is hashing described as a one-way process?
Model answer
A hash is designed to be computed from the original data but not feasibly reversed to recover that original data.
Explanation
Unlike encryption, hashing is not intended to be undone with a decryption key.
- 17
Name several secure hash algorithms or algorithm families mentioned in the material.
Model answer
Examples include SHA, RIPEMD, MD, and Whirlpool.
Explanation
These algorithms generate digest values used to represent and check data.
- 18
What is symmetric cryptography?
Model answer
Symmetric cryptography uses the same secret key for both encryption and decryption.
Explanation
The sender and receiver must both possess and protect the shared key.
- 19
Why is symmetric cryptography efficient for large amounts of data?
Model answer
Symmetric algorithms generally encrypt large amounts of data efficiently and quickly.
Explanation
Their main operational difficulty is not speed but securely distributing the shared key.
- 20
What is the main key-management challenge of symmetric cryptography?
Model answer
The communicating parties must securely distribute and protect the same secret key.
Explanation
Sharing one key with many people becomes increasingly difficult because anyone with the key may decrypt the data.
- 21
What are examples of symmetric encryption algorithms?
Model answer
Examples include AES, Blowfish, Twofish, and DES.
Explanation
These algorithms use a shared secret key for encryption and decryption.
- 22
What is asymmetric cryptography?
Model answer
Asymmetric cryptography uses a mathematically related public key and private key rather than one shared secret key.
Explanation
The public key can be distributed, while the private key must remain secret.
- 23
How do public and private keys support secure communication?
Model answer
The public key can be shared openly, while the private key is kept only by its owner. Depending on the operation, one key is used to protect or verify information and the other to decrypt or authenticate it.
Explanation
This arrangement avoids distributing one shared secret to every participant.
- 24
How does asymmetric cryptography address the key-distribution problem of symmetric cryptography?
Model answer
It allows people to distribute a public key openly while keeping the private key secret, rather than requiring all parties to share the same secret key.
Explanation
This makes communication with many participants more manageable.
- 25
What are RSA and ECC?
Model answer
RSA and ECC are asymmetric cryptographic methods. RSA relies on difficult mathematical problems involving large prime numbers, while ECC uses elliptic-curve mathematics and can provide security with smaller keys.
Explanation
The smaller keys used by ECC can make it faster and more suitable for modern devices.
- 26
What is a one-time pad?
Model answer
A one-time pad combines a message with a random key, and that key must never be reused.
Explanation
Reusing the key violates the central requirement that each one-time-pad key be used only once.
- 27
What is a stream cipher?
Model answer
A stream cipher encrypts data sequentially, typically processing individual characters or small units with a generated keystream.
Explanation
The material illustrates this as replacing each letter of a message with another encrypted letter.
- 28
What is a block cipher?
Model answer
A block cipher encrypts data in fixed-size blocks rather than processing the entire message as one continuous stream.
Explanation
It can be understood as mixing or transforming a complete block of text at a time.
- 29
What is a sponge function?
Model answer
A sponge function absorbs input data and produces an output of variable length.
Explanation
Its input can be of varying size, and its output length can also be selected as needed.
- 30
What is the difference between encryption and hashing?
Model answer
Encryption is intended to be reversible with the correct key, whereas hashing is a one-way transformation used primarily to represent and verify data.
Explanation
Encrypted data can be decrypted; a secure hash should not be feasibly reversed to reveal the original input.
- 31
Which type of algorithm uses the same key to encrypt and decrypt data?
Model answer
A symmetric cryptographic algorithm uses the same key for both operations.
Explanation
The shared key must be securely held by both the sender and the receiver.
- 32
What is the purpose of the Digital Signature Algorithm (DSA)?
Model answer
DSA creates a digital signature that helps verify the sender's identity, demonstrate message integrity, and support non-repudiation.
Explanation
A valid signature indicates that the message is associated with the claimed sender and was not altered in transit.
- 33
How does a digital signature help prove message integrity?
Model answer
A signature is mathematically associated with the message, so a change to the message causes signature verification to fail.
Explanation
This allows the recipient to detect alteration after the signature was created.
- 34
How does a digital signature support non-repudiation?
Model answer
It provides evidence linking a message or action to the holder of a private signing key, making denial more difficult.
Explanation
The signature does not merely hide the message; it helps establish who authorized it.
- 35
What is the purpose of Diffie-Hellman key exchange?
Model answer
Diffie-Hellman allows two parties to establish a shared secret key over a communication channel without directly transmitting the secret key.
Explanation
The resulting shared key can then be used to protect subsequent communication.
- 36
What do DHE and ECDH represent?
Model answer
DHE is Diffie-Hellman ephemeral, and ECDH is elliptic-curve Diffie-Hellman.
Explanation
Both are methods for securely establishing shared secret keys, using different mathematical approaches or key properties.
- 37
What is perfect forward secrecy?
Model answer
Perfect forward secrecy is a property in which the compromise of a long-term key does not expose previously established session keys.
Explanation
Ephemeral key-exchange methods such as DHE can help provide this protection.
- 38
What is file-level encryption?
Model answer
File-level encryption protects individual files by encrypting and decrypting them separately.
Explanation
It allows selected files to be protected without necessarily encrypting an entire disk or volume.
- 39
What is file-system encryption?
Model answer
File-system encryption protects groups of files through capabilities integrated with the operating system's file system.
Explanation
It applies encryption through the file-system layer rather than requiring each file to be handled independently.
- 40
What is Encrypting File System (EFS)?
Model answer
EFS is a Microsoft Windows feature that integrates encryption and decryption with the file system.
Explanation
This integration makes file encryption relatively seamless and transparent to users.
- 41
What is full-disk encryption (FDE)?
Model answer
Full-disk encryption encrypts all data on a hard drive, including the operating system, files, folders, and system data.
Explanation
It protects the entire disk so that its contents remain unreadable without the required key.
- 42
How does BitLocker illustrate full-disk encryption?
Model answer
BitLocker is a Microsoft Windows example of full-disk encryption that protects the entire disk, including the Windows operating system and registry.
Explanation
A stolen drive remains encrypted even if someone removes it and connects it to another device.
- 43
What is volume-level encryption?
Model answer
Volume-level encryption protects a specific section of a drive, called a volume, that is accessible through an associated file system.
Explanation
It provides protection for selected disk sections rather than necessarily encrypting the entire physical disk.
- 44
What are two approaches to database encryption?
Model answer
The plug-in method adds an encryption module to the database management system, while transparent data encryption performs encryption and decryption within the database engine.
Explanation
Both approaches protect database data, but they integrate with the database system differently.
- 45
Why is transparent data encryption often easier to manage than the plug-in method?
Model answer
TDE does not require additional packages or changes to the database engine or DBMS code.
Explanation
Because encryption is handled within the database engine, deployment and administration are more straightforward.
- 46
How can cryptography be integrated into hardware?
Model answer
Cryptographic functions can be built into devices such as USB drives and hard drives so that data stored on them is encrypted automatically.
Explanation
Hardware-based protection can secure data with little user intervention.
- 47
What remote controls may advanced hardware-encrypted USB devices provide?
Model answer
Administrators may be able to deny access, disable a user's access, or command the device to erase its stored data.
Explanation
These controls help respond to lost devices, unauthorized users, or other security threats.
- 48
What is a self-encrypting drive?
Model answer
A self-encrypting drive automatically encrypts all data written to it.
Explanation
Encryption is performed by the drive itself rather than relying only on software running on the host.
- 49
What happens when a self-encrypting drive fails authentication during power-up?
Model answer
The drive can deny access or delete its encryption keys, making the stored data permanently unreadable.
Explanation
The authentication process occurs between the drive and host device before access is granted.
- 50
What is a hardware security module (HSM)?
Model answer
An HSM is an external device designed for cryptographic operations that includes key generation and key storage.
Explanation
It also accelerates both symmetric and asymmetric encryption processes.
- 51
What is a trusted execution environment (TEE)?
Model answer
A TEE is a protected area within a computer that preserves the confidentiality and integrity of code and data.
Explanation
It functions as a secure vault separated from the ordinary operating environment.
- 52
What is a Trusted Platform Module (TPM), and what cryptographic services can it provide?
Model answer
A TPM is a standardized secure environment that can provide services such as random-number generation and asymmetric encryption, including public- and private-key creation.
Explanation
It is an implementation of a secure hardware area for cryptographic functions.
- 53
What is a Secure Enclave?
Model answer
A Secure Enclave is the name used on Apple and Android devices for a protected hardware-based area that performs secure operations and protects sensitive data.
Explanation
It serves the same general purpose as other trusted secure areas within devices.
- 54
What is a blockchain?
Model answer
A blockchain is a shared, tamper-resistant record used to record transactions and track assets across a network.
Explanation
Participating computers regularly agree on the state of a distributed ledger so that everyone maintains consistent information.
- 55
How does a distributed ledger maintain a common record?
Model answer
A group of computers repeatedly agrees on the correct state of the ledger, allowing participants to maintain the same transaction information.
Explanation
This shared agreement supports the consistency of blockchain records.
- 56
Compare public, private, and federated blockchains.
Model answer
A public blockchain is open to anyone, a private blockchain restricts participation to selected users, and a federated blockchain combines public and private characteristics.
Explanation
Federated blockchains are useful for organizations that need both controlled access and some broader participation.
- 57
Why is cryptography challenging to implement on low-power devices?
Model answer
These devices have limited processing power, memory, and energy, while cryptographic operations require time and power.
Explanation
Designers must balance strong protection with the device's limited performance and battery resources.
- 58
What design goal should guide cryptography on resource-constrained devices?
Model answer
The goal is to protect the device without consuming so many resources that its performance or responsiveness is impaired.
Explanation
Effective security must be balanced against the device's limited capabilities.
- 59
What are algorithm attacks in cryptography?
Model answer
Algorithm attacks use weaknesses in an encryption algorithm, its implementation, or its operating mode to bypass protection or recover information.
Explanation
Attackers may target the way an algorithm is used rather than simply attempting to guess a key.
- 60
What is a known-ciphertext attack?
Model answer
A known-ciphertext attack analyzes available encrypted data to identify patterns that may reveal the original plaintext or encryption key.
Explanation
Statistical techniques can help attackers search ciphertext for useful relationships or patterns.
- 61
What is a downgrade attack?
Model answer
A downgrade attack forces a system to abandon a stronger security mode and use an older or weaker one.
Explanation
The weaker mode may contain vulnerabilities that make the system easier to attack.
- 62
What is a collision attack?
Model answer
A collision attack attempts to create two different messages that produce the same hash value.
Explanation
A successful collision undermines the assumption that a digest uniquely represents a particular message.
- 63
Why are hash collisions a security concern?
Model answer
If different messages have the same hash, an attacker may substitute one message for another while making the hash comparison appear valid.
Explanation
This can weaken the use of hashes for integrity and authenticity checks.
- 64
What is a birthday attack?
Model answer
A birthday attack uses the birthday paradox to find two different inputs with the same hash value more efficiently than a simple exhaustive search.
Explanation
The attack exploits the fact that a matching pair becomes likely sooner than finding a specific input with a chosen hash.
- 65
What does the birthday paradox illustrate about probability?
Model answer
In a group of 23 people, there is approximately a 50% chance that at least two share a birthday.
Explanation
The result demonstrates how quickly matching pairs can occur, which motivates birthday attacks against hashes.
- 66
What limitation of cryptography is illustrated by the need for secure key distribution?
Model answer
Cryptography can protect data only if keys are generated, distributed, stored, and managed securely.
Explanation
A compromised or improperly shared key can allow an attacker to access protected information even when the algorithm itself is strong.
- 67
How could quantum computing threaten current cryptographic systems?
Model answer
Quantum computers use quantum bits and can solve certain mathematical problems, such as factoring large numbers, much faster than traditional computers, potentially breaking some current encryption.
Explanation
Their ability to process quantum states in parallel creates a threat to cryptographic schemes based on difficult mathematical problems.
- 68
What is a qubit?
Model answer
A qubit is the quantum-computing equivalent of a bit and can represent a combination of zero and one at the same time.
Explanation
This quantum property allows quantum computers to process certain calculations differently from traditional computers.
- 69
What is post-quantum cryptography?
Model answer
Post-quantum cryptography consists of cryptographic methods designed to remain secure against attacks from quantum computers.
Explanation
These methods are intended to protect data as quantum computing develops.
- 70
Why is factoring large numbers relevant to cryptographic security?
Model answer
Some cryptographic systems rely on the difficulty of factoring large numbers; a sufficiently capable quantum computer could perform this task much faster and undermine those systems.
Explanation
The security of such systems depends partly on the infeasibility of solving the underlying mathematical problem with conventional computers.
- 71
Which encryption method protects all data on a hard drive, including the installed operating system?
Model answer
Full-disk encryption protects all data on the drive, including the installed operating system.
Explanation
It encrypts the entire disk rather than only selected files or volumes.

Ask anything
We've read this whole study set, so questions about it get the best answers.