50 multiple-choice questions with answers and detailed explanations. Untimed — choose an answer to check it instantly.
0/50 answered0 correct
Question 1 of 50
Which of the following block cipher modes is the least secure because it encrypts identical blocks of plaintext into identical blocks of ciphertext?
Correct answer: C) ECB
Explanation: ECB (Electronic Codebook) mode is considered insecure because identical plaintext blocks result in identical ciphertext blocks, making it vulnerable to pattern analysis attacks.
Question 2 of 50
Which of the following types of cryptographic attacks aims to recover plaintext from ciphertext without knowledge of the encryption key?
Correct answer: B) Cryptanalysis attack
Explanation: A cryptanalysis attack attempts to recover plaintext or encryption keys by analyzing the ciphertext and using various techniques without needing to know the key.
Question 3 of 50
Which of the following cryptographic algorithms is commonly used for encrypting files with full disk encryption?
Correct answer: B) AES
Explanation: AES is commonly used in full disk encryption due to its strong security and efficiency.
Question 4 of 50
Which of the following algorithms is based on the difficulty of solving discrete logarithms?
Correct answer: B) ECC
Explanation: Elliptic Curve Cryptography (ECC) relies on the difficulty of solving discrete logarithms, which is what provides its security.
Question 5 of 50
Which type of cipher involves rearranging the characters of the plaintext without changing the actual characters?
Correct answer: B) Transposition cipher
Explanation: A transposition cipher rearranges the characters of the plaintext, while a substitution cipher changes the characters to other symbols or letters.
Question 6 of 50
Which of the following encryption methods allows two parties to establish a shared secret over an insecure channel?
Correct answer: C) Diffie-Hellman
Explanation: Diffie-Hellman is used to securely establish a shared secret between two parties over an insecure channel, such as the internet.
Question 7 of 50
Which of the following best describes an active attack in cryptography?
Correct answer: B) An attacker attempts to modify or alter the communications between two parties
Explanation: An active attack involves modifying, intercepting, or altering the communications between two parties, whereas a passive attack involves eavesdropping without altering data.
Question 8 of 50
What is the key length for AES-192 encryption?
Correct answer: B) 192 bits
Explanation: AES-192 uses a 192-bit key for encryption, providing a higher level of security than AES-128.
Question 9 of 50
Which of the following encryption algorithms is typically used for secure key exchange in public key infrastructure (PKI)?
Correct answer: B) RSA
Explanation: RSA is commonly used for secure key exchange in PKI due to its use of public and private keys.
Question 10 of 50
Which of the following is a cryptographic technique used to ensure that data has not been altered?
Correct answer: B) Hashing
Explanation: Hashing is used to ensure data integrity by generating a fixed-length hash value that can be compared to the original data to check for any changes.
Question 11 of 50
Which cryptographic attack involves attempting every possible key until the correct one is found?
Correct answer: C) Brute-force attack
Explanation: A brute-force attack involves trying all possible combinations of keys until the correct key is found.
Question 12 of 50
Which of the following describes an asymmetric encryption algorithm?
Correct answer: B) It uses different keys for encryption and decryption
Explanation: Asymmetric encryption uses a public key for encryption and a private key for decryption, making it more secure for key exchange.
Question 13 of 50
What is the primary advantage of using elliptic curve cryptography (ECC) over RSA?
Correct answer: B) ECC uses smaller key sizes for equivalent security
Explanation: ECC provides the same level of security as RSA but with much smaller key sizes, making it more efficient in terms of storage and computational resources.
Question 14 of 50
Which of the following block cipher modes uses an initialization vector (IV) and chains each block to the previous one?
Correct answer: C) CBC
Explanation: Cipher Block Chaining (CBC) mode uses an initialization vector and chains each block to the previous one, making it more secure than ECB mode.
Question 15 of 50
Which of the following is a characteristic of a cryptographic hash function?
Correct answer: B) It generates a fixed-length output from a variable-length input
Explanation: A cryptographic hash function generates a fixed-length output, called a hash, from a variable-length input and is used to ensure data integrity.
Question 16 of 50
Which of the following encryption modes allows for parallel processing of blocks?
Correct answer: C) CTR
Explanation: Counter (CTR) mode allows for parallel processing of blocks because each block is encrypted independently, improving performance in high-speed environments
Question 17 of 50
What is the main weakness of the DES encryption algorithm?
Correct answer: A) It uses a small key size
Explanation: DES uses a small key size of 56 bits, which makes it vulnerable to brute-force attacks.
Question 18 of 50
Which of the following cryptographic attacks involves intercepting communications between two parties and altering the data without their knowledge?
Correct answer: A) Man-in-the-middle attack
Explanation: In a man-in-the-middle attack, the attacker intercepts and potentially alters the communication between two parties without their knowledge.
Question 19 of 50
Which of the following describes the concept of perfect forward secrecy?
Correct answer: C) It ensures that past sessions remain secure even if long-term keys are compromised
Explanation: Perfect forward secrecy ensures that even if long-term encryption keys are compromised, previous session keys remain secure.
Question 20 of 50
Which of the following best describes the function of a digital signature?
Correct answer: B) It verifies the identity of the sender and the integrity of the message
Explanation: A digital signature is used to verify the sender's identity and ensure that the message has not been tampered with.
Question 21 of 50
Which cryptographic attack involves capturing and reusing valid data transmissions at a later time?
Correct answer: A) Replay attack
Explanation: A replay attack involves capturing valid data transmissions and reusing them at a later time to gain unauthorized access or perform malicious actions.
Question 22 of 50
What is the key length for AES-256 encryption?
Correct answer: C) 256 bits
Explanation: AES-256 uses a 256-bit key for encryption, providing a high level of security.
Question 23 of 50
Which of the following describes the purpose of salting in password hashing?
Correct answer: A) To make the password hash harder to crack by adding random data
Explanation: Salting adds random data to the password before hashing, making it more difficult for attackers to use precomputed rainbow tables to crack the hash.
Question 24 of 50
Which of the following cryptographic algorithms is commonly used for generating a digital signature?
Correct answer: B) RSA
Explanation: RSA is commonly used for generating digital signatures, providing authentication and data integrity by allowing the recipient to verify the sender's identity.
Question 25 of 50
Which of the following best describes the function of a Certificate Authority (CA)?
Correct answer: B) It issues and manages digital certificates for public key infrastructure
Explanation: A Certificate Authority (CA) is responsible for issuing and managing digital certificates used in public key infrastructure (PKI).
Question 26 of 50
Which of the following best describes a man-in-the-middle attack?
Correct answer: A) An attacker intercepts and alters communications between two parties
Explanation: A man-in-the-middle attack occurs when an attacker intercepts communications between two parties and potentially alters the data without their knowledge.
Question 27 of 50
What is the primary purpose of a cryptographic nonce?
Correct answer: B) To ensure that identical plaintexts produce different ciphertexts
Explanation: A nonce is a random value used only once in encryption to ensure that the same plaintext encrypted multiple times results in different ciphertexts.
Question 28 of 50
Which of the following is a symmetric block cipher?
Correct answer: A) AES
Explanation: AES is a symmetric block cipher that encrypts data in fixed-size blocks using the same key for both encryption and decryption.
Question 29 of 50
Which of the following cryptographic algorithms is used for generating a hash value?
Correct answer: C) SHA-256
Explanation: SHA-256 is a cryptographic hash algorithm that generates a fixed-length hash value, ensuring data integrity.
Question 30 of 50
Which cryptographic attack involves analyzing the time taken to execute encryption operations to deduce the key?
Correct answer: A) Side-channel attack
Explanation: In a side-channel attack, the attacker analyzes the time, power consumption, or other physical characteristics of encryption operations to gather information about the encryption key
Question 31 of 50
Which of the following is a characteristic of hashing algorithms?
Correct answer: B) They generate a fixed-length output from a variable-length input
Explanation: Hashing algorithms generate a fixed-length output, called a hash value, from a variable-length input and are used to ensure data integrity.
Question 32 of 50
Which type of cryptographic attack involves modifying encrypted messages in transit to change their meaning?
Correct answer: B) Man-in-the-middle attack
Explanation: In a man-in-the-middle attack, the attacker intercepts and potentially modifies encrypted messages in transit, altering the data without the sender or receiver's knowledge.
Question 33 of 50
Which of the following block cipher modes allows parallel processing of blocks, improving performance?
Correct answer: C) CTR
Explanation: Counter (CTR) mode allows for parallel processing of blocks because each block is encrypted independently, improving performance in high-speed environments.
Question 34 of 50
Which of the following cryptographic methods uses different keys for encryption and decryption?
Correct answer: B) Asymmetric encryption
Explanation: Asymmetric encryption uses a public key for encryption and a private key for decryption, making it more secure for key exchange.
Question 35 of 50
What is the primary role of a cryptographic hash function?
Correct answer: B) To ensure data integrity by generating a fixed-length output
Explanation: A cryptographic hash function ensures data integrity by generating a unique, fixed-length hash value from input data, allowing verification that the data has not been altered.
Question 36 of 50
Which of the following best describes the purpose of digital certificates in public key infrastructure (PKI)?
Correct answer: B) To verify the identity of the certificate holder and provide public key information
Explanation: Digital certificates in PKI are used to verify the identity of the certificate holder and provide the corresponding public key for secure communications.
Question 37 of 50
Which of the following encryption algorithms is commonly used for generating a digital signature?
Correct answer: B) RSA
Explanation: RSA is commonly used for generating digital signatures, providing authentication and data integrity by allowing the recipient to verify the sender's identity.
Question 38 of 50
Which of the following cryptographic attacks involves an attacker choosing ciphertext to be decrypted and then analyzing the resulting plaintext?
Correct answer: B) Chosen-ciphertext attack
Explanation: In a chosen-ciphertext attack, the attacker selects ciphertext to be decrypted and analyzes the resulting plaintext to gather information about the encryption key.
Question 39 of 50
What is the primary function of salting in password hashing?
Correct answer: B) To ensure that the same password generates different hash values
Explanation: Salting adds random data to passwords before hashing to ensure that identical passwords result in different hash values, making it harder to crack.
Question 40 of 50
Which cryptographic algorithm is based on the difficulty of solving discrete logarithms?
Correct answer: C) ECC
Explanation: Elliptic Curve Cryptography (ECC) is based on the mathematical difficulty of solving discrete logarithms, making it secure for encryption and key exchange
Question 41 of 50
Quantum computers threaten current public key algorithms such as RSA and ECC mainly because of:
Correct answer: A) Shor's algorithm, which can efficiently factor integers and compute discrete logarithms
Explanation: Shor's algorithm would break RSA and ECC on a large quantum computer, which is driving the move to post-quantum cryptography.
Correct answer: B) Roughly halving the effective key strength, so AES-256 still offers strong security
Explanation: Grover's algorithm speeds up brute-force search quadratically, so doubling key length (for example AES-256) keeps symmetric encryption secure.
Question 43 of 50
Which security goal does encryption primarily provide?
Correct answer: C) Confidentiality
Explanation: Encryption keeps data confidential by making it unreadable without the key. Hashes and signatures address integrity and non-repudiation.
Question 44 of 50
Full disk encryption protects data mainly when:
Correct answer: D) A device is lost or stolen while powered off
Explanation: Full disk encryption protects data at rest. Once the disk is unlocked, data is available to the logged-in user and running software.
Question 45 of 50
Encrypting data while it travels across a network protects data:
Correct answer: A) In transit (in motion)
Explanation: Data in transit is protected with protocols such as TLS, IPsec and SSH. Data at rest is protected with disk or database encryption.
Question 46 of 50
A root certificate authority's certificate is:
Correct answer: B) Self-signed and trusted directly by operating systems and browsers
Explanation: Root CAs sign their own certificates. Trust in them is built into systems, and they usually sign intermediate CAs rather than end users directly.
Question 47 of 50
A chain of trust in PKI links an end-entity certificate to:
Correct answer: C) A trusted root CA through one or more intermediate certificates
Explanation: Each certificate in the chain is signed by the one above it, up to a trusted root, which lets clients verify the certificate.
Question 48 of 50
Which algorithm is a widely used digital signature standard published by NIST?
Correct answer: D) DSA
Explanation: The Digital Signature Algorithm (DSA) and its elliptic curve version ECDSA are standard signature algorithms.
Question 49 of 50
Which action best protects the confidentiality of a private key?
Correct answer: A) Storing it encrypted, with strict access control, ideally in an HSM or secure key store
Explanation: Anyone with the private key can decrypt messages and forge signatures, so it must be tightly protected.
Question 50 of 50
Non-repudiation means:
Correct answer: B) A sender cannot credibly deny having sent a message they signed
Explanation: Because only the sender holds the private key, a valid digital signature proves the sender created the message.
Set 5 complete
You scored 0%
0 correct out of 0 answered (50 questions in this set).