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 is an advantage of using a one-time pad in cryptography?
Correct answer: C) It is considered unbreakable
Explanation: A one-time pad is considered unbreakable because it uses a random key that is as long as the message and is used only once. This ensures that there is no repeating pattern that can be exploited by attackers.
Question 2 of 50
What is the primary purpose of a hardware security module (HSM)?
Correct answer: A) To manage cryptographic keys
Explanation: An HSM is a tamper-resistant device designed to manage, store, and protect cryptographic keys and perform cryptographic operations.
Question 3 of 50
Which encryption mode ensures that no two blocks of plaintext will ever produce the same ciphertext?
Correct answer: B) Cipher Block Chaining (CBC)
Explanation: CBC mode XORs each plaintext block with the previous ciphertext block before encryption, ensuring that no two identical plaintext blocks produce the same ciphertext.
Question 4 of 50
Which type of cryptographic attack involves analyzing the frequency of letters or groups of letters?
Correct answer: C) Frequency analysis
Explanation: Frequency analysis involves studying the frequency of letters or groups of letters in a ciphertext to break the encryption. It is particularly effective against simple substitution ciphers.
Question 5 of 50
What is the key weakness of the Electronic Code Book (ECB) encryption mode?
Correct answer: C) It encrypts identical plaintext blocks into identical ciphertext blocks
Explanation: ECB mode is insecure because it produces the same ciphertext for identical plaintext blocks, making it vulnerable to pattern analysis.
Question 6 of 50
Which of the following algorithms is commonly used in light-weight cryptography?
Correct answer: C) SPECK
Explanation: SPECK is a light-weight block cipher designed by the NSA, optimized for performance in hardware implementations, making it suitable for constrained environments like IoT devices.
Question 7 of 50
Which of the following hashing methods produces a 160-bit output?
Correct answer: B) SHA-1
Explanation: SHA-1 produces a 160-bit hash value, though it is now considered insecure and has been largely replaced by stronger algorithms like SHA-256 and SHA-512.
Question 8 of 50
Which encryption technique is based on the mathematical difficulty of factoring large prime numbers?
Correct answer: C) RSA
Explanation: RSA relies on the difficulty of factoring large prime numbers, which makes it secure for encryption and digital signatures, though it is computationally intensive.
Question 9 of 50
What is the primary function of a digital certificate?
Correct answer: B) To provide a public key to verify signatures
Explanation: A digital certificate binds a public key to an entity, allowing others to verify that entity’s signature or to encrypt messages using the public key
Question 10 of 50
In the Diffie-Hellman key exchange algorithm, what is exchanged between two parties?
Correct answer: C) Public keys
Explanation: In the Diffie-Hellman key exchange, the two parties exchange public keys, which are used along with their own private keys to derive a shared secret key.
Question 11 of 50
Which of the following cryptographic operations can be performed without decrypting the data first?
Correct answer: C) Homomorphic encryption
Explanation: Homomorphic encryption allows mathematical operations to be performed on encrypted data without needing to decrypt it, ensuring data privacy during processing
Question 12 of 50
Which of the following modes converts a block cipher into a synchronous stream cipher?
Correct answer: C) Output Feedback (OFB)
Explanation: OFB mode transforms a block cipher into a stream cipher by generating keystream blocks that are XORed with the plaintext, allowing block-by-block encryption.
Question 13 of 50
Which cryptographic hash function is widely considered vulnerable to collision attacks?
Correct answer: A) SHA-1
Explanation: SHA-1 has been proven vulnerable to collision attacks, where two different inputs produce the same hash value, compromising the integrity of the hash.
Question 14 of 50
What is a primary benefit of using elliptic curve cryptography (ECC) over RSA?
Correct answer: A) It uses smaller keys for the same level of security
Explanation: ECC offers the same level of security as RSA but with much smaller key sizes, making it faster and more efficient, especially in resource-constrained environments.
Question 15 of 50
Which of the following describes a man-in-the-middle (MITM) attack?
Correct answer: C) The attacker intercepts and alters communication between two parties
Explanation: A MITM attack involves the attacker secretly intercepting and potentially altering communication between two parties, without them knowing.
Question 16 of 50
Which encryption method is most commonly used to encrypt individual files in modern operating systems?
Correct answer: A) AES
Explanation: AES is widely used in modern operating systems like Windows and macOS to encrypt individual files and entire disk volumes due to its strength and efficiency.
Question 17 of 50
In public key cryptography, which key is used to decrypt a message that has been encrypted with the recipient’s public key?
Correct answer: C) The recipient’s private key
Explanation: In asymmetric encryption, a message encrypted with the recipient’s public key can only be decrypted by the recipient’s private key, ensuring confidentiality.
Question 18 of 50
What is the function of a nonce in cryptographic operations?
Correct answer: B) To prevent replay attacks
Explanation: A nonce is a number used once to ensure that old communications cannot be replayed by attackers, adding randomness to cryptographic protocols.
Question 19 of 50
Which of the following algorithms supports homomorphic encryption?
Correct answer: A) RSA
Explanation: RSA supports certain types of homomorphic encryption, allowing mathematical operations to be performed on ciphertext without decrypting it first.
Question 20 of 50
What is the block size used by AES?
Correct answer: B) 128 bits
Explanation: AES uses a fixed block size of 128 bits, regardless of the key size, which can be 128, 192, or 256 bits.
Question 21 of 50
Which stream cipher is commonly used in Wi-Fi encryption under WPA2?
Correct answer: B) RC4
Explanation: RC4 is a stream cipher that was widely used in WPA and WEP encryption, though it has been deprecated in favor of more secure algorithms like AES-CCMP.
Question 22 of 50
Which of the following is an asymmetric encryption algorithm?
Correct answer: C) RSA
Explanation: RSA is an asymmetric encryption algorithm that uses a public/private key pair, unlike AES and DES, which are symmetric algorithms.
Question 23 of 50
Which of the following is a method for verifying the integrity of a message?
Correct answer: C) Digital signature
Explanation: A digital signature is used to verify the integrity of a message, ensuring it has not been altered during transmission and verifying the sender’s identity.
Question 24 of 50
Which of the following describes the concept of perfect forward secrecy?
Correct answer: B) Compromised long-term keys will not compromise past session keys
Explanation: Perfect forward secrecy ensures that even if long-term keys are compromised, past session keys remain secure, as each session key is unique.
Question 25 of 50
What is a common weakness of password-based encryption methods?
Correct answer: A) Vulnerability to brute-force attacks
Explanation: Password-based encryption is susceptible to brute-force attacks, where attackers try many possible passwords until they find the correct one.
Question 26 of 50
Which of the following modes uses an initialization vector (IV) for the first block but requires feedback from previous ciphertext blocks?
Correct answer: C) Cipher Block Chaining (CBC)
Explanation: CBC mode uses an IV for the first block and XORs each subsequent block of plaintext with the previous ciphertext block, ensuring that identical plaintext blocks produce different ciphertexts.
Question 27 of 50
What is the main purpose of the modulus operator (mod) in cryptography?
Correct answer: B) To return the remainder of a division
Explanation: The modulus operator returns the remainder after dividing one number by another, and it is frequently used in cryptographic algorithms like RSA and Diffie-Hellman.
Question 28 of 50
Which cryptographic attack relies on the ability to obtain multiple ciphertexts encrypted with the same key?
Correct answer: D) Ciphertext-only attack
Explanation: A ciphertext-only attack relies on the ability to analyze multiple ciphertexts encrypted with the same key to deduce the key or plaintext, often using statistical methods.
Question 29 of 50
In a Caesar cipher, how is the encryption process performed?
Correct answer: A) By shifting the plaintext letters by a fixed number of positions
Explanation: In a Caesar cipher, each letter in the plaintext is shifted by a fixed number of positions down or up the alphabet to produce the ciphertext.
Question 30 of 50
Which of the following protocols uses symmetric key encryption to secure communication between two parties?
Correct answer: D) All of the above
Explanation: TLS, SSL, and IPsec all use symmetric key encryption to secure communication between two parties, with the session key being negotiated via asymmetric methods.
Question 31 of 50
Which public key cryptosystem uses elliptic curves to provide encryption, digital signatures, and key exchange?
Correct answer: C) ECC
Explanation: ECC (Elliptic Curve Cryptography) uses elliptic curves for encryption, digital signatures, and key exchange, offering equivalent security to RSA but with smaller key sizes.
Question 32 of 50
Which method is commonly used to crack a hashed password?
Correct answer: B) Dictionary attack
Explanation: A dictionary attack involves trying commonly used passwords or words from a predefined list against a hashed password until the correct one is found.
Question 33 of 50
Which encryption algorithm is commonly used to secure communications in wireless networks under WPA2?
Correct answer: A) AES
Explanation: AES is commonly used to secure communications in wireless networks under WPA2, providing strong encryption for protecting data over Wi-Fi.
Question 34 of 50
Which of the following cryptographic algorithms relies on the difficulty of solving discrete logarithms?
Correct answer: C) El Gamal
Explanation: El Gamal relies on the difficulty of solving discrete logarithms, which makes it secure for encryption and digital signatures, but it requires longer key sizes than RSA.
Question 35 of 50
What is the purpose of a certificate revocation list (CRL)?
Correct answer: C) To list certificates that are no longer valid
Explanation: A CRL lists certificates that have been revoked before their expiration date, allowing users and systems to avoid trusting certificates that have been compromised or are no longer valid.
Question 36 of 50
Which encryption algorithm is typically used with blockchain technologies like Bitcoin?
Explanation: ECC is widely used in blockchain technologies like Bitcoin due to its smaller key sizes, which provide efficient and secure cryptographic operations.
Question 37 of 50
What is the output size of a hash generated by the SHA-256 algorithm?
Correct answer: C) 256 bits
Explanation: SHA-256 generates a fixed-length hash output of 256 bits, providing a higher level of security compared to SHA-1 and MD5.
Question 38 of 50
Which of the following describes the concept of salting in cryptography?
Correct answer: B) Adding random data to a password before hashing
Explanation: Salting involves adding random data to a password before hashing to prevent attackers from using precomputed hash values (rainbow tables) to crack the password.
Question 39 of 50
Which of the following describes an ephemeral key?
Correct answer: A) A key used to encrypt a single message or session
Explanation: An ephemeral key is used for a single message or session and is discarded afterward, providing better security by ensuring that previous keys cannot be reused.
Question 40 of 50
What is the primary advantage of stream encryption over block encryption?
Correct answer: B) It is faster and works well for real-time applications
Explanation: Stream encryption is often faster than block encryption and works well for real-time applications like audio and video transmission, where data is processed bit by bit.
Question 41 of 50
What type of attack exploits the fact that two different inputs can produce the same hash value?
Correct answer: B) Collision attack
Explanation: A collision attack exploits the fact that two different inputs can produce the same hash value, undermining the integrity of the hash function and potentially leading to forged digital signatures.
Question 42 of 50
Which of the following algorithms is a stream cipher?
Correct answer: C) RC4
Explanation: RC4 is a stream cipher that encrypts data one bit or byte at a time, commonly used in older encryption protocols like WEP and WPA.
Question 43 of 50
Which of the following is a weakness of the WPA encryption protocol?
Correct answer: C) It uses RC4, which is insecure
Explanation: WPA uses the RC4 stream cipher, which has known vulnerabilities, making it less secure compared to modern encryption methods like AES used in WPA2.
Question 44 of 50
Which of the following cryptographic algorithms is commonly used for key exchange?
Correct answer: C) Diffie-Hellman
Explanation: Diffie-Hellman is widely used for secure key exchange between two parties, allowing them to establish a shared secret key over an unsecured communication channel.
Question 45 of 50
Which block cipher mode is considered the weakest due to its lack of an initialization vector (IV)?
Correct answer: B) Electronic Code Book (ECB)
Explanation: ECB mode is considered weak because it does not use an IV, which results in identical plaintext blocks being encrypted into identical ciphertext blocks, making it vulnerable to pattern analysis.
Question 46 of 50
Which of the following describes the main advantage of elliptic curve cryptography (ECC)?
Correct answer: B) ECC provides the same security as RSA with smaller key sizes
Explanation: ECC offers equivalent security to RSA but with much smaller key sizes, making it more efficient in terms of computation and storage, especially for mobile and embedded devices.
Question 47 of 50
Which of the following describes a chosen-ciphertext attack?
Correct answer: D) The attacker chooses a ciphertext and obtains its corresponding decrypted plaintext
Explanation: In a chosen-ciphertext attack, the attacker selects a ciphertext and obtains its decrypted plaintext, often using this information to deduce the encryption key or break the cryptosystem.
Question 48 of 50
What is a primary risk of using a non-synchronizing cipher mode, such as Cipher Feedback (CFB)?
Correct answer: B) If a block of ciphertext is lost, subsequent blocks cannot be decrypted
Explanation: In a non-synchronizing cipher mode like CFB, each ciphertext block depends on the previous one. If a block is lost or corrupted, the subsequent blocks cannot be decrypted correctly.
Question 49 of 50
Which of the following is used to verify the identity of a server in an HTTPS connection?
Correct answer: C) Digital certificate
Explanation: A digital certificate is used to verify the identity of a server in an HTTPS connection, ensuring that the server is legitimate and has the correct public key for encryption.
Question 50 of 50
What is the primary function of a Trusted Platform Module (TPM) in cryptography?
Correct answer: C) To provide hardware-level encryption and secure key storage
Explanation: A TPM is a dedicated hardware component that provides hardware-level encryption, securely stores cryptographic keys, and enhances system security.
Set 1 complete
You scored 0%
0 correct out of 0 answered (50 questions in this set).