Cryptography Quiz

Encryption, hashing, and the cryptographic 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, standard-library usage, and the language idioms that come up in day-to-day scripting and application work.
187 questions
JavaScript (Coding)
Core JavaScript language behavior, async patterns, and the quirks that trip up both beginners and experienced developers.
186 questions
Linux
Linux command-line usage, file permissions, process management, and the everyday admin tasks every sysadmin and developer needs.
150 questions
Security
General information security concepts — threats, defenses, and the fundamentals every IT professional should know.
148 questions
Hardware
Computer hardware components, how they interact, and the troubleshooting knowledge behind keeping systems running.
145 questions