Cryptography Quiz

Encryption and hashing: the primitives that keep data confidential and verifiable.

This category currently has 100 questions in the SERVBG quiz bank. Below are a few sample questions: the full interactive quiz shuffles through the whole set with instant scoring.

Sample questions

A developer encrypts each record in a database using AES-GCM with a fixed 96-bit nonce hardcoded in the application. After 2^32 records, what is the primary security failure?
You need an AEAD cipher resistant to nonce misuse. Your threat model includes accidental nonce repetition by distributed services. Which construction is specifically designed for nonce-misuse resistance?
A legacy system uses AES-128-ECB to encrypt 16-byte user tokens. An auditor flags this. Which attack directly exploits ECB mode's deterministic block encryption?
An API uses ChaCha20-Poly1305 with a randomly generated 96-bit nonce per message. The service processes 10 billion messages per key. Approximately what is the probability of a nonce collision, and what is the recommended mitigation?
Which property distinguishes AES-OCB from AES-GCM in terms of patent history and adoption barriers, despite OCB having similar or better performance?
Start the full quiz ›

Related categories

Python (Coding)
Python syntax and standard-library usage, from quick scripts to full applications.
187 questions
JavaScript (Coding)
Core JavaScript behavior and async patterns, including the quirks that trip up beginners and veterans alike.
186 questions
Linux
Linux command-line usage, file permissions, process management. The daily admin tasks.
150 questions
Security
General information security concepts: common threats and standard defenses.
148 questions
Hardware
Hardware components, how they interact, and basic troubleshooting to keep systems running.
145 questions