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 describes a chosen-plaintext attack?
Correct answer: A) The attacker encrypts chosen plaintext and compares it with the ciphertext
Explanation: In a chosen-plaintext attack, the attacker chooses plaintext to encrypt and then compares it to the resulting ciphertext to gather information about the encryption algorithm.
Question 2 of 50
Which encryption algorithm is commonly used for securing email communications using digital signatures?
Correct answer: B) RSA
Explanation: RSA is commonly used to secure email communications with digital signatures, providing both authentication and message integrity.
Question 3 of 50
What is the main advantage of stream ciphers over block ciphers?
Correct answer: B) Stream ciphers are faster and better suited for real-time data transmission
Explanation: Stream ciphers encrypt data one bit or byte at a time, making them faster and better suited for real-time applications like audio and video streaming.
Question 4 of 50
Which of the following describes a rainbow table attack?
Correct answer: B) An attack that precomputes possible hash values to crack passwords
Explanation: A rainbow table attack uses a precomputed table of hash values and their corresponding plaintexts to quickly crack hashed passwords.
Question 5 of 50
Which of the following encryption algorithms 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 6 of 50
What is the primary characteristic of a block cipher?
Correct answer: B) It encrypts data in fixed-size blocks
Explanation: A block cipher encrypts data in fixed-size blocks, typically 64 or 128 bits, as opposed to stream ciphers that encrypt data one bit or byte at a time.
Question 7 of 50
Which type of attack aims to discover patterns between ciphertext and plaintext pairs?
Correct answer: A) Differential cryptanalysis
Explanation: Differential cryptanalysis involves analyzing differences between plaintext and ciphertext pairs to discover patterns that can be used to break the encryption.
Question 8 of 50
What is the key length of the AES-256 encryption algorithm?
Correct answer: C) 256 bits
Explanation: AES-256 uses a key length of 256 bits, providing a high level of security for encrypted communications and data storage.
Question 9 of 50
Which of the following best describes a certificate revocation list (CRL)?
Correct answer: A) A list of certificates that have been revoked by the issuing Certificate Authority
Explanation: A CRL is a list of certificates that have been revoked before their expiration date, allowing users and systems to check whether a certificate is still valid
Question 10 of 50
Which of the following describes a timing attack?
Correct answer: A) An attack that measures the time taken to perform cryptographic operations
Explanation: A timing attack exploits the time taken to perform cryptographic operations, potentially allowing attackers to deduce the encryption key or plaintext.
Question 11 of 50
Symmetric encryption uses:
Correct answer: B) The same secret key to encrypt and decrypt
Explanation: In symmetric encryption, sender and receiver share one secret key. Examples include AES and 3DES.
Question 12 of 50
Asymmetric (public key) encryption uses:
Correct answer: A) A key pair: a public key and a mathematically related private key
Explanation: Data encrypted with a public key can only be decrypted with the matching private key. RSA and ECC are examples.
Question 13 of 50
Which block size does AES use?
Correct answer: C) 128 bits
Explanation: AES always uses a 128-bit block, with key sizes of 128, 192 or 256 bits.
Question 14 of 50
Which key sizes are supported by AES?
Correct answer: D) 128, 192 and 256 bits
Explanation: AES supports 128-, 192- and 256-bit keys, using 10, 12 and 14 rounds respectively.
Question 15 of 50
What is the effective key length of DES?
Correct answer: A) 56 bits
Explanation: DES uses a 64-bit key, but 8 bits are parity bits, leaving an effective key length of 56 bits, which is too short for modern use.
Question 16 of 50
Triple DES (3DES) improves on DES by:
Correct answer: B) Applying the DES algorithm three times with two or three keys
Explanation: 3DES encrypts, decrypts and encrypts again (EDE), increasing effective security. It is now deprecated in favor of AES.
Question 17 of 50
The security of RSA is based on the difficulty of:
Correct answer: C) Factoring the product of two large prime numbers
Explanation: RSA's strength depends on how hard it is to factor a large modulus n = p x q back into its prime factors.
Question 18 of 50
Elliptic curve cryptography (ECC) is attractive because it:
Correct answer: D) Provides strong security with much smaller keys than RSA
Explanation: A 256-bit ECC key offers security comparable to a 3072-bit RSA key, which saves processing power and bandwidth.
Question 19 of 50
The Diffie-Hellman algorithm is primarily used for:
Correct answer: A) Securely establishing a shared secret key over an insecure channel
Explanation: Diffie-Hellman lets two parties agree on a shared secret without sending it, which can then be used as a symmetric key.
Question 20 of 50
A cryptographic hash function produces:
Correct answer: B) A fixed-length digest from input of any length
Explanation: Hash functions map input of any size to a fixed-size output and are designed to be one-way.
Question 21 of 50
What is the output length of SHA-256?
Correct answer: C) 256 bits
Explanation: SHA-256 produces a 256-bit (32-byte) digest. SHA-1 produces 160 bits and MD5 produces 128 bits.
Question 22 of 50
What is the output length of MD5?
Correct answer: D) 128 bits
Explanation: MD5 produces a 128-bit digest. It is broken for collision resistance and should not be used for security.
Question 23 of 50
A collision in a hash function occurs when:
Correct answer: A) Two different inputs produce the same hash value
Explanation: Collision resistance means it should be infeasible to find two different inputs with the same hash. MD5 and SHA-1 have known practical collisions.
Question 24 of 50
A digital signature is created by:
Correct answer: B) Encrypting a hash of the message with the sender's private key
Explanation: The sender signs the message hash with their private key. Anyone can verify it with the sender's public key.
Question 25 of 50
Digital signatures provide which security services?
Correct answer: C) Authentication, integrity and non-repudiation
Explanation: A valid signature proves who signed (authentication), that the data was not changed (integrity), and that the signer cannot deny it (non-repudiation).
Question 26 of 50
To send a confidential message using public key cryptography, the sender encrypts it with:
Correct answer: D) The recipient's public key
Explanation: Only the recipient's private key can decrypt data encrypted with the recipient's public key, which keeps the message confidential.
Question 27 of 50
What is a digital certificate?
Correct answer: A) An electronic document that binds a public key to an identity, signed by a certificate authority
Explanation: X.509 certificates contain the subject's identity, public key, validity period and the issuing CA's signature.
Question 28 of 50
Which standard defines the format of public key certificates?
Correct answer: B) X.509
Explanation: X.509 specifies certificate fields such as subject, issuer, serial number, validity and public key.
Question 29 of 50
In a public key infrastructure (PKI), the certificate authority (CA):
Correct answer: C) Issues and signs digital certificates, vouching for the identity of the key holder
Explanation: The CA verifies identities and signs certificates. Relying parties trust certificates signed by CAs they trust.
Question 30 of 50
A Certificate Revocation List (CRL) contains:
Correct answer: D) Certificates that have been revoked before their expiration date
Explanation: CRLs list revoked certificates, for example when a private key is compromised. OCSP provides real-time revocation checks.
Question 31 of 50
What does OCSP provide?
Correct answer: A) Real-time checking of a certificate's revocation status
Explanation: The Online Certificate Status Protocol lets clients ask a responder whether a specific certificate is still valid.
Question 32 of 50
Which block cipher mode encrypts each block independently, so identical plaintext blocks produce identical ciphertext blocks?
Correct answer: B) ECB
Explanation: Electronic Codebook (ECB) mode leaks patterns in the data and should not be used for most purposes.
Question 33 of 50
In Cipher Block Chaining (CBC) mode, each plaintext block is:
Correct answer: C) XORed with the previous ciphertext block before being encrypted
Explanation: CBC chains blocks together and uses an initialization vector (IV) for the first block, hiding patterns that ECB reveals.
Question 34 of 50
Which AES mode provides both encryption and authentication (authenticated encryption)?
Correct answer: D) GCM
Explanation: Galois/Counter Mode combines counter-mode encryption with an authentication tag, providing confidentiality and integrity.
Question 35 of 50
What is the purpose of an initialization vector (IV)?
Correct answer: A) To ensure that encrypting the same plaintext with the same key produces different ciphertext
Explanation: An IV adds randomness so repeated messages do not produce identical ciphertext. IVs do not need to be secret, but often must be unpredictable.
Question 36 of 50
A stream cipher encrypts data:
Correct answer: B) One bit or byte at a time by combining it with a keystream
Explanation: Stream ciphers XOR plaintext with a pseudorandom keystream. ChaCha20 is a modern example; RC4 is deprecated.
Question 37 of 50
Which encryption method is theoretically unbreakable if the key is truly random, as long as the message, and never reused?
Correct answer: C) One-time pad
Explanation: A one-time pad offers perfect secrecy when the key is truly random, used once and kept secret, but key distribution is impractical.
Question 38 of 50
A HMAC (hash-based message authentication code) combines:
Correct answer: D) A cryptographic hash function with a secret key
Explanation: HMAC uses a shared secret key with a hash function to verify both the integrity and the authenticity of a message.
Question 39 of 50
Salting passwords before hashing them helps defend against:
Correct answer: A) Rainbow table and precomputed dictionary attacks
Explanation: A unique random salt per password means identical passwords hash differently and precomputed tables become useless.
Question 40 of 50
Which algorithm is specifically designed for slow, secure password hashing?
Correct answer: B) bcrypt
Explanation: bcrypt (like scrypt and Argon2) is deliberately slow and salted, making brute-force attacks on stolen password hashes harder.
Question 41 of 50
A brute-force attack on encryption works by:
Correct answer: C) Trying every possible key until the correct one is found
Explanation: Longer keys make brute force infeasible. Each extra bit doubles the number of possible keys.
Question 42 of 50
In a man-in-the-middle attack, the attacker:
Correct answer: D) Secretly intercepts and possibly alters communication between two parties
Explanation: Certificates and authenticated key exchange help prevent attackers from impersonating either side of a connection.
Question 43 of 50
A known-plaintext attack occurs when the attacker:
Correct answer: A) Has samples of both plaintext and the corresponding ciphertext
Explanation: With matching plaintext and ciphertext pairs, the attacker tries to deduce the key or decrypt other messages.
Question 44 of 50
Which attack takes advantage of the birthday paradox to find hash collisions faster than brute force?
Correct answer: B) Birthday attack
Explanation: Because of the birthday paradox, collisions in an n-bit hash can be found in about 2^(n/2) attempts, which is why longer hashes are needed.
Question 45 of 50
A side-channel attack gathers information from:
Correct answer: C) Physical characteristics of the system, such as timing, power consumption or electromagnetic leaks
Explanation: Side-channel attacks exploit how a cryptosystem is implemented rather than the algorithm itself.
Question 46 of 50
Which protocol secures web traffic in HTTPS?
Correct answer: D) TLS
Explanation: Transport Layer Security (TLS) encrypts HTTP traffic, authenticates the server with a certificate and protects data integrity.
Question 47 of 50
During a TLS handshake, asymmetric cryptography is mainly used to:
Correct answer: A) Authenticate the server and establish a shared session key
Explanation: Asymmetric methods handle authentication and key exchange. The bulk data is then encrypted with a faster symmetric cipher.
Question 48 of 50
Perfect forward secrecy (PFS) ensures that:
Correct answer: B) Compromise of a long-term private key does not expose past session keys
Explanation: PFS uses ephemeral key exchanges, such as ECDHE, so each session key is independent of the server's long-term key.
Question 49 of 50
Kerckhoffs's principle states that a cryptosystem should be secure even if:
Correct answer: C) Everything about the system, except the key, is public knowledge
Explanation: Security should depend on keeping the key secret, not on keeping the algorithm secret.
Question 50 of 50
Steganography is the practice of:
Correct answer: D) Hiding a message inside another file, such as an image, so its existence is concealed
Explanation: Steganography hides the fact that a message exists. Cryptography protects the content but does not hide that a message was sent.
Set 2 complete
You scored 0%
0 correct out of 0 answered (50 questions in this set).