Securing Stored Passwords
- 74Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
Why is storing users’ passwords in clear text dangerous if an attacker obtains the password database?
Why is storing users’ passwords in clear text dangerous if an attacker obtains the password database?
74 questions
- 1
Why is storing users’ passwords in clear text dangerous if an attacker obtains the password database?
- A
The passwords become unusable because clear-text values cannot be sent over the internet.
- B
The attacker can immediately use the exposed passwords, including in credential-stuffing attempts on other services.
- C
The attacker can change the passwords but cannot learn or reuse their original values.
- D
The database will stop recognizing valid usernames until every password is reset.
Correct answer
BThe attacker can immediately use the exposed passwords, including in credential-stuffing attempts on other services.
Explanation
A clear-text database exposes the actual passwords. An attacker can try those credentials on other services, especially if users have reused them. A service that can email a user their original password is a warning sign that the password may be stored in recoverable form.
- A
- 2
What does hashing a password mean in this context?
- A
Encrypting the password with a key that the server must keep available to decrypt it later.
- B
Converting the password with a function into a hash value that can be stored instead of the password.
- C
Dividing the password into pieces and storing each piece in a separate database.
- D
Replacing the password with a shorter version that preserves its original meaning.
Correct answer
BConverting the password with a function into a hash value that can be stored instead of the password.
Explanation
A hash function takes a password as input and produces a hash value. A system can store that value rather than the password itself.
- A
- 3
What is a weakness of hashing a password only according to its first letter?
- A
Different passwords beginning with the same letter produce the same result, and the result reveals that letter.
- B
The result changes every time, so the server cannot check a returning user’s password.
- C
Every password produces a unique result, but the result is too long to store efficiently.
- D
The result can be converted back into the password without any guessing.
Correct answer
ADifferent passwords beginning with the same letter produce the same result, and the result reveals that letter.
Explanation
A first-letter scheme maps all words beginning with the same letter to the same value and reveals information about the password. For example, both “apple” and “avocado” would map to the same result.
- A
- 4
What should happen when the same password is passed to the same ordinary hash function more than once?
- A
It should produce a value determined by the username rather than by the password.
- B
It should produce the same hash value each time, absent additional randomness such as a salt.
- C
It should produce a different hash value each time because the function hides its output.
- D
It should produce the original password the first time and a hash value afterward.
Correct answer
BIt should produce the same hash value each time, absent additional randomness such as a salt.
Explanation
A deterministic function gives the same output for the same input. This property lets a server hash a submitted password and compare the result with the stored hash.
- A
- 5
What should a server do with a password when a user creates an account using a salted-hashing system?
- A
Store the plaintext password beside the hash so the user can recover it later.
- B
Hash the username but store the password unchanged so the server can compare it directly.
- C
Encrypt the password with the user’s username and store the decryption key in the same record.
- D
Hash the password with a salt, store the resulting value with the username, and discard the plaintext password.
Correct answer
DHash the password with a salt, store the resulting value with the username, and discard the plaintext password.
Explanation
At registration, the server hashes the password with a salt and stores the resulting hash value. It does not need to retain the original plaintext password.
- A
- 6
How does a server typically check a password when a returning user logs in?
- A
It checks whether the submitted password has the same number of characters as the stored hash.
- B
It hashes the submitted password using that account’s salt and compares the result with the stored hash.
- C
It compares the submitted password with a copy stored in the account’s username field.
- D
It decrypts the stored hash to recover the password and compares the two plaintext values.
Correct answer
BIt hashes the submitted password using that account’s salt and compares the result with the stored hash.
Explanation
The server retrieves the account’s salt, hashes the submitted password with it, and compares the resulting hash with the stored value. A match supports authentication.
- A
- 7
What does it mean to say that a cryptographic password hash is one-way?
- A
The password can be hashed only once, after which the account cannot be used.
- B
The hash is designed not to provide a reliable method for recovering the original password from its value.
- C
The server can compute a hash from a password but cannot compare two hash values.
- D
The hash can be reversed only by the company that created the hashing library.
Correct answer
BThe hash is designed not to provide a reliable method for recovering the original password from its value.
Explanation
A one-way hash is not meant to be reversed to reveal the original input. However, attackers can still guess candidate passwords, hash them, and compare the results.
- A
- 8
How can an attacker use a dictionary attack against a stolen password-hash database?
- A
Compare usernames with dictionary entries until the server reveals the corresponding passwords.
- B
Reverse each hash mathematically by looking up the password in an ordinary dictionary.
- C
Replace each stored hash with a dictionary word and see which account accepts it.
- D
Hash likely candidate words with the same function and compare the results with the stolen hashes.
Correct answer
DHash likely candidate words with the same function and compare the results with the stolen hashes.
Explanation
The attacker can try likely passwords from a dictionary, hash each candidate, and compare the results against the stolen database. Hashing raises the effort required but does not prevent guessing.
- A
- 9
What distinguishes a brute-force attack from a dictionary attack on password hashes?
- A
A brute-force attack tests usernames, while a dictionary attack tests encryption keys.
- B
A brute-force attack systematically tries possible combinations, rather than relying only on a list of likely words.
- C
A brute-force attack decrypts the database, while a dictionary attack hashes candidate passwords.
- D
A brute-force attack uses only stolen salts, while a dictionary attack requires the user’s device.
Correct answer
BA brute-force attack systematically tries possible combinations, rather than relying only on a list of likely words.
Explanation
Brute force systematically tries candidate combinations, such as sequences of digits or letters, hashes them, and checks for matches. It can take substantial time and computing resources.
- A
- 10
What is a rainbow table in the context of password attacks?
- A
A database of salts that lets a server recover passwords without hashing them.
- B
A precomputed collection associating candidate passwords with the hashes already calculated for them.
- C
A technique for making every user’s password hash unique without storing extra values.
- D
A list of encryption keys that changes whenever a user logs in.
Correct answer
BA precomputed collection associating candidate passwords with the hashes already calculated for them.
Explanation
A rainbow table stores candidate passwords and their precomputed hash values. An attacker can compare stolen hashes against the table instead of computing every candidate hash during the attack.
- A
- 11
Why is a salt added when hashing a password?
- A
It lets the server recover the plaintext password if the user forgets it.
- B
It makes identical passwords more likely to produce different stored hashes for different users.
- C
It ensures that a password cannot be guessed using a dictionary.
- D
It keeps the password secret by serving as a private decryption key.
Correct answer
BIt makes identical passwords more likely to produce different stored hashes for different users.
Explanation
A salt changes the input to the hash function. Different salts help prevent users with the same password from having identical stored hashes.
- A
- 12
Which statement best describes a password salt’s secrecy and storage?
- A
It need not be secret and can be stored with or encoded in the corresponding hash value.
- B
It is stored only on the user’s device and is never available to the server.
- C
It must be kept secret from both users and the server to protect the password.
- D
It is discarded after hashing because it is not needed for later verification.
Correct answer
AIt need not be secret and can be stored with or encoded in the corresponding hash value.
Explanation
A salt is not intended to be a secret. Storing it with the hash lets the server retrieve it when verifying a later login attempt.
- A
- 13
When verifying a salted password, how does the server know which salt to use?
- A
It derives the salt from the plaintext password after reversing the stored hash.
- B
It asks the user to choose a new salt each time the user logs in.
- C
It retrieves the salt associated with the account’s stored hash and hashes the submitted password with that salt.
- D
It applies one secret salt shared by every account on the system.
Correct answer
CIt retrieves the salt associated with the account’s stored hash and hashes the submitted password with that salt.
Explanation
The server uses the salt associated with the account, often included in the stored hash representation, to repeat the hashing process for the submitted password.
- A
- 14
Why can two different inputs sometimes produce the same cryptographic hash value?
- A
A hash value contains the complete input, but some of its characters are hidden.
- B
Hash functions deliberately assign the same output to every pair of inputs.
- C
The possible inputs are far more numerous than the finite set of possible fixed-length outputs.
- D
Different inputs can match only when they use the same username.
Correct answer
CThe possible inputs are far more numerous than the finite set of possible fixed-length outputs.
Explanation
A hash function maps an extremely large input space to a finite range of fixed-length outputs. Consequently, multiple inputs must map to the same output, though modern hash functions make useful collisions difficult to find.
- A
- 15
Which choice best reflects the purpose of a modern password-hashing approach recommended for resisting offline guessing?
- A
Use a reversible cipher and keep its key beside the password database for quick recovery.
- B
Hash the password once with a public function that makes every possible guess instantaneous.
- C
Use a suitable salted, one-way key-derivation function designed to make each guessing trial expensive.
- D
Use a short hash and rely on keeping the algorithm secret from attackers.
Correct answer
CUse a suitable salted, one-way key-derivation function designed to make each guessing trial expensive.
Explanation
Recommendations call for salted passwords processed by a suitable one-way key-derivation function. The goal is to increase the cost of each offline password-guessing attempt. Stored hash formats may also identify which hashing scheme was used.
- A
- 16
Which statement correctly distinguishes hashing from encryption?
- A
Hashing is generally one-way, whereas encryption is designed to be reversible with the appropriate key.
- B
Hashing and encryption are both reversible, but only hashing uses a public key.
- C
Hashing requires a secret key, whereas encryption never uses a key.
- D
Hashing protects data in transit, whereas encryption is used only for passwords at rest.
Correct answer
AHashing is generally one-way, whereas encryption is designed to be reversible with the appropriate key.
Explanation
Hashing is generally used as a one-way transformation; encryption is designed to let an authorized party recover the original data using a key.
- A
- 17
What is a code, in the cryptographic sense described here?
- A
A key pair used to encrypt a message and verify its sender.
- B
A program that turns a password into a fixed-length hash value.
- C
A sequence of binary digits used to represent files on a computer.
- D
A mapping between code words and the messages or meanings they represent.
Correct answer
DA mapping between code words and the messages or meanings they represent.
Explanation
A code maps words or phrases to other words or phrases. A recipient needs the corresponding code book or mapping to interpret the coded message.
- A
- 18
What does it mean to encode a message using a code book?
- A
To convert the codetext back into its original plaintext.
- B
To hash the plaintext and store the resulting value in a database.
- C
To convert the plaintext into codetext by substituting the corresponding code words.
- D
To encrypt each bit using a private key and produce a digital signature.
Correct answer
CTo convert the plaintext into codetext by substituting the corresponding code words.
Explanation
Encoding in this context maps a plaintext message to codetext using a code book. Decoding uses the mapping in reverse to recover the plaintext.
- A
- 19
How does a cipher differ from a code book in the account given?
- A
A cipher requires a physical book, whereas a code book is always implemented in software.
- B
A cipher is one-way, whereas every code book uses a public and private key.
- C
A cipher applies an algorithmic transformation, often to individual letters or bits, rather than mapping whole words or phrases.
- D
A cipher protects only passwords, whereas a code book protects only documents.
Correct answer
CA cipher applies an algorithmic transformation, often to individual letters or bits, rather than mapping whole words or phrases.
Explanation
Ciphers operate algorithmically, often on letters or bits, and can be applied repeatedly to a message. Codes map code words to message meanings.
- A
- 20
Which pair of terms describes converting plaintext into ciphertext and then recovering the plaintext?
- A
Encode or decode; encrypt or salt.
- B
Hash or salt; unsalt or unhash.
- C
Sign or verify; encode or hash.
- D
Encrypt or encipher; decrypt or decipher.
Correct answer
DEncrypt or encipher; decrypt or decipher.
Explanation
Encrypt and encipher describe converting plaintext to ciphertext. Decrypt and decipher describe reversing that process to recover plaintext.
- A
- 21
Why should a cryptographic system generally rely on a public, well-tested algorithm rather than conceal the algorithm itself?
- A
The design should remain secure through the secrecy of the key, even when the algorithm is known.
- B
Concealing an algorithm automatically makes its keys impossible to guess.
- C
A public algorithm prevents anyone from calculating ciphertext.
- D
A public algorithm lets users recover encrypted data without a key.
Correct answer
AThe design should remain secure through the secrecy of the key, even when the algorithm is known.
Explanation
The intended secret is generally the key, not the algorithm. Public, well-tested standards can be scrutinized, while security depends on using them correctly and protecting the information meant to remain secret.
- A
- 22
What is cryptanalysis?
- A
The process of creating a username and password for an online account.
- B
The conversion of a file into a fixed-length hash to check its integrity.
- C
The study or practice of analyzing encrypted messages to recover their plaintext or otherwise defeat the cipher.
- D
The process of securely deleting data by overwriting its storage locations.
Correct answer
CThe study or practice of analyzing encrypted messages to recover their plaintext or otherwise defeat the cipher.
Explanation
Cryptanalysis involves analyzing encrypted communications in an effort to decrypt or otherwise break them.
- A
- 23
Which statement describes a cryptographic hash function’s input and output lengths?
- A
It accepts only fixed-length inputs and produces outputs of varying lengths.
- B
It must produce an output exactly as long as its input.
- C
It accepts only passwords and produces an output whose length depends on the username.
- D
It can accept inputs of varying lengths and produce outputs of a fixed length.
Correct answer
DIt can accept inputs of varying lengths and produce outputs of a fixed length.
Explanation
Cryptographic hash functions can take arbitrary-length inputs, such as passwords or documents, and map them to fixed-length hash values.
- A
- 24
Besides password storage, what role can cryptographic hash functions play?
- A
They can replace encryption keys while preserving the ability to decrypt messages.
- B
They can guarantee that a message remains secret while traveling across the internet.
- C
They can recover deleted files by reversing their original storage locations.
- D
They can provide a compact representation used to help check data integrity or support digital signatures.
Correct answer
DThey can provide a compact representation used to help check data integrity or support digital signatures.
Explanation
Hashes can summarize messages or documents for integrity checks and are used as part of digital-signature processes. A hash alone does not encrypt or conceal the message.
- A
- 25
Why might a stored modern password-hash string include a code identifying the hash scheme?
- A
The identifier tells the system which hashing method was used so it can verify the password appropriately.
- B
The identifier proves that no two users chose the same password.
- C
The identifier is the private key needed to decrypt the stored hash.
- D
The identifier contains the plaintext password in a form the user can email to themselves.
Correct answer
AThe identifier tells the system which hashing method was used so it can verify the password appropriately.
Explanation
Stored hash formats can include an identifier for the scheme used to generate the value. This helps the system apply the appropriate verification process.
- A
- 26
In secret-key cryptography, why is the system called symmetric-key encryption?
- A
The sender and receiver use the same shared key to encrypt and decrypt.
- B
The key is public, but the encryption algorithm is kept secret.
- C
The sender uses a public key while the receiver uses a separate private key.
- D
The sender and receiver exchange hashes but never use a key.
Correct answer
AThe sender and receiver use the same shared key to encrypt and decrypt.
Explanation
Secret-key encryption is symmetric because the communicating parties use the same key for the encryption and decryption process.
- A
- 27
What are the principal inputs and output of a symmetric encryption process?
- A
Plaintext and a key are inputs; ciphertext is the output.
- B
A password and a salt are inputs; a digital signature is the output.
- C
Ciphertext and a public key are inputs; plaintext is the output.
- D
A hash and a username are inputs; a private key is the output.
Correct answer
APlaintext and a key are inputs; ciphertext is the output.
Explanation
In the described model, the encryption algorithm takes the plaintext and a key and produces ciphertext.
- A
- 28
Why is a key used even when everyone is using the same encryption algorithm?
- A
The key configures the algorithm so different users or transmissions need not produce identical ciphertext for identical plaintext.
- B
The key converts a reversible cipher into a one-way hash function.
- C
The key ensures that ciphertext can never be decrypted by its intended recipient.
- D
The key makes the algorithm secret and prevents anyone from knowing which cipher was used.
Correct answer
AThe key configures the algorithm so different users or transmissions need not produce identical ciphertext for identical plaintext.
Explanation
A key customizes the use of a shared algorithm. This helps avoid exposing patterns that could arise if identical messages always produced identical ciphertext.
- A
- 29
How does the Caesar cipher transform letters when its key is one?
- A
It shifts each letter forward by one place, with the alphabet wrapping from Z back to A.
- B
It converts each letter into a hash value that cannot be reversed.
- C
It reverses the order of the letters without changing their identities.
- D
It replaces every letter with the next letter in the sender’s username.
Correct answer
AIt shifts each letter forward by one place, with the alphabet wrapping from Z back to A.
Explanation
The Caesar cipher is a rotational cipher. With a shift of one, A becomes B, B becomes C, and the sequence wraps around at the end of the alphabet.
- A
- 30
What does ROT13 do to a letter?
- A
It replaces the letter with its thirteenth hash value.
- B
It shifts the letter 13 positions and then adds a secret key to the result.
- C
It rotates the letter 13 times through the same position, leaving it unchanged.
- D
It rotates the letter 13 positions through the alphabet.
Correct answer
DIt rotates the letter 13 positions through the alphabet.
Explanation
ROT13 is a rotational cipher that shifts letters by 13 positions. It is commonly used to obscure text casually, not to provide strong security.
- A
- 31
Why does a rotational cipher using a key of 26 provide no meaningful scrambling of English letters?
- A
A shift of 26 returns each letter to its original position in a 26-letter alphabet.
- B
A shift of 26 converts every letter into the same ciphertext character.
- C
The cipher allows only keys smaller than 26, so the system rejects the message.
- D
A key of 26 makes the cipher one-way and therefore impossible to decrypt.
Correct answer
AA shift of 26 returns each letter to its original position in a 26-letter alphabet.
Explanation
In a 26-letter alphabet, shifting by 26 positions returns each letter to where it began. Therefore, the ciphertext is unchanged from the plaintext.
- A
- 32
Why is a Caesar cipher with a small number of possible shifts easy to break?
- A
The cipher stores its key openly in every ciphertext character.
- B
An attacker can reverse the encryption without considering any possible keys.
- C
An attacker can try each possible shift and identify the result that forms readable plaintext.
- D
The cipher produces a different output for every letter, making the message longer.
Correct answer
CAn attacker can try each possible shift and identify the result that forms readable plaintext.
Explanation
A rotational cipher has few possible keys, so an attacker can test them all by brute force. Modern computers can do this especially quickly.
- A
- 33
Which pair was identified as commonly used secret-key encryption algorithms?
- A
RSA and Diffie–Hellman.
- B
AES and triple DES.
- C
DSA and ECDSA.
- D
SHA-2 and SHA-3.
Correct answer
BAES and triple DES.
Explanation
AES and triple DES were identified as examples of symmetric or secret-key encryption algorithms. The other choices name public-key or hashing/signature algorithms.
- A
- 34
What problem arises when two parties want to use symmetric encryption but have never communicated before?
- A
They need a shared secret key, but securely sending that key requires a secure channel they do not yet have.
- B
They must first send the complete plaintext through an unencrypted channel.
- C
They cannot choose an encryption algorithm because symmetric algorithms must be kept secret.
- D
They need to exchange their passwords, because symmetric encryption does not use keys.
Correct answer
AThey need a shared secret key, but securely sending that key requires a secure channel they do not yet have.
Explanation
Symmetric encryption assumes the parties already share a secret key. Establishing that secret securely can be difficult when they have no secure means of communicating yet.
- A
- 35
What is the fundamental difference between symmetric and asymmetric encryption?
- A
Symmetric encryption uses a shared key, while asymmetric encryption uses a related public-key and private-key pair.
- B
Symmetric encryption uses public algorithms, while asymmetric encryption requires secret algorithms.
- C
Symmetric encryption uses hashes, while asymmetric encryption uses only plaintext.
- D
Symmetric encryption is one-way, while asymmetric encryption cannot be reversed.
Correct answer
ASymmetric encryption uses a shared key, while asymmetric encryption uses a related public-key and private-key pair.
Explanation
Symmetric encryption relies on a shared key. Asymmetric encryption uses two mathematically related keys with different roles.
- A
- 36
Which key should someone use to encrypt a message intended for you using public-key encryption?
- A
Your private key, so that your corresponding public key can encrypt it again.
- B
The sender’s private key, so that only the sender can read the message.
- C
A secret key shared by every user of the system.
- D
Your public key, so that your corresponding private key can decrypt the message.
Correct answer
DYour public key, so that your corresponding private key can decrypt the message.
Explanation
A sender can encrypt a message with the recipient’s public key. The corresponding private key is used to decrypt it.
- A
- 37
What is the intended role of a private key in public-key encryption?
- A
It identifies the owner’s IP address and is shared with every recipient.
- B
It is published widely so that anyone can encrypt a message with it.
- C
It is kept secret by its owner and can decrypt messages encrypted with the corresponding public key.
- D
It replaces the public key whenever the owner wants to encrypt a message to someone else.
Correct answer
CIt is kept secret by its owner and can decrypt messages encrypted with the corresponding public key.
Explanation
The private key should remain under its owner’s control. In the described public-key encryption process, it decrypts messages encrypted with the corresponding public key.
- A
- 38
How are public-key and private-key values generally obtained by an individual user?
- A
The user derives the public key from a message after receiving it.
- B
The user selects a memorable password and uses it unchanged as both keys.
- C
A network assigns both values according to the user’s IP address.
- D
A device or software generates the related values, which are large numbers represented in computer-readable form.
Correct answer
DA device or software generates the related values, which are large numbers represented in computer-readable form.
Explanation
Public and private keys are generally generated for the user by a computer or device. Although they may be displayed as text, they represent large numbers or binary values.
- A
- 39
What does the “public” part of a public key mean?
- A
It can be shared with others, who can use it to encrypt messages intended for its owner.
- B
It is a password that must be hidden from the owner’s device.
- C
It is shared only after the recipient has already received the plaintext.
- D
It can be used by anyone to decrypt messages encrypted with the matching private key.
Correct answer
AIt can be shared with others, who can use it to encrypt messages intended for its owner.
Explanation
A public key is intended to be shared. Others can use it to encrypt messages that only the corresponding private key can decrypt.
- A
- 40
Which mathematical idea underlies the simplified description of RSA key generation?
- A
Choose two passwords and hash them; recovering either password is computationally immediate.
- B
Choose two large primes and multiply them; recovering the primes from their product is computationally difficult.
- C
Add two small integers and use their sum as a secret shared by all users.
- D
Rotate a letter through the alphabet until it becomes a unique prime number.
Correct answer
BChoose two large primes and multiply them; recovering the primes from their product is computationally difficult.
Explanation
The simplified RSA description uses two large prime numbers, often called p and q, whose product is n. The difficulty of recovering the factors from the product is central to the explanation.
- A
- 41
In the simplified RSA process described, what is the role of modular arithmetic?
- A
The calculations convert a private key into a salt stored in a password database.
- B
The calculations replace large prime numbers with letters from the English alphabet.
- C
The calculations use powers of values and take remainders with respect to n to produce ciphertext or recover a message.
- D
The calculations compare usernames and passwords without using a key.
Correct answer
CThe calculations use powers of values and take remainders with respect to n to produce ciphertext or recover a message.
Explanation
The simplified RSA account describes raising a message or ciphertext value to an exponent and taking the remainder after division by n.
- A
- 42
What is the purpose of Diffie–Hellman in the explanation?
- A
It encrypts each message using the same public key for both parties.
- B
It allows a sender to create a digital signature without having a private key.
- C
It lets two parties derive the same shared secret over a public channel without sending that complete secret.
- D
It lets a server reverse a password hash without requiring a salt.
Correct answer
CIt lets two parties derive the same shared secret over a public channel without sending that complete secret.
Explanation
Diffie–Hellman is described as a key-exchange method. Each party uses private information and exchanged values to arrive at the same shared secret.
- A
- 43
In the simplified Diffie–Hellman setup, what do the agreed generator g and prime p provide?
- A
A secret salt that is stored with each user’s password hash.
- B
The plaintext message that the parties later exchange.
- C
The private keys that both parties must keep identical.
- D
Shared public parameters that both parties use in their calculations.
Correct answer
DShared public parameters that both parties use in their calculations.
Explanation
The generator g and prime p are agreed upon in advance and used by both parties in the key-exchange calculations. Each party separately chooses a private value.
- A
- 44
Why can an eavesdropper who sees the exchanged Diffie–Hellman values still be unable to determine the shared secret?
- A
The shared secret is included in every exchanged value but hidden by a salt.
- B
The parties retain their private values, which are needed to complete the calculations that produce the shared secret.
- C
The eavesdropper cannot read any message sent over a public channel.
- D
The exchanged values are encrypted with the eavesdropper’s private key.
Correct answer
BThe parties retain their private values, which are needed to complete the calculations that produce the shared secret.
Explanation
Each party keeps a private value and uses it with the other party’s exchanged value. The complete shared secret is not itself sent across the network.
- A
- 45
After two parties establish a shared secret using a key-exchange method, what can they do with it?
- A
Publish it as their public key so anyone can decrypt their messages.
- B
Use it as the shared key for a symmetric encryption algorithm such as AES.
- C
Use it to reverse every password hash stored on their devices.
- D
Replace all of their digital signatures with plaintext messages.
Correct answer
BUse it as the shared key for a symmetric encryption algorithm such as AES.
Explanation
A shared secret established through key exchange can be used with symmetric encryption, such as AES, to protect subsequent communications.
- A
- 46
How are public keys commonly associated with people or organizations?
- A
Through a system of trust, such as a registry or a key shared through a trusted email or website.
- B
Automatically through each person’s IP address, which uniquely determines the key.
- C
By using the same public key for every person on the internet.
- D
By storing every person’s private key in a public directory.
Correct answer
AThrough a system of trust, such as a registry or a key shared through a trusted email or website.
Explanation
Public keys can be distributed through registries or published in places such as email signatures or websites. A recipient must have a reason to trust that the key really belongs to its claimed owner.
- A
- 47
What is the first step in the described process for digitally signing a document?
- A
Store the document in a password database with a salt.
- B
Encrypt the entire document with the recipient’s public key.
- C
Hash the document to produce a fixed-length representation.
- D
Convert the document into a code word using a printed code book.
Correct answer
CHash the document to produce a fixed-length representation.
Explanation
The document is first passed through a hash function. The resulting fixed-length hash is then used in the signature process.
- A
- 48
Which key does the signer use in the described digital-signature process?
- A
The signer’s public key, together with the recipient’s password.
- B
The signer’s private key, together with the hash of the message.
- C
The recipient’s private key, together with the plaintext message.
- D
A shared symmetric key, together with the document’s salt.
Correct answer
BThe signer’s private key, together with the hash of the message.
Explanation
The signer uses their private key and the document’s hash to generate a digital signature.
- A
- 49
How does a recipient check the described digital signature?
- A
Hash the recipient’s public key and compare it with the sender’s password.
- B
Compare the signature’s file size with the length of the original document.
- C
Decrypt the document with the signer’s private key and compare it with the signature.
- D
Hash the received document, verify the signature with the signer’s public key, and compare the resulting hashes.
Correct answer
DHash the received document, verify the signature with the signer’s public key, and compare the resulting hashes.
Explanation
The recipient hashes the document and uses the signer’s public key to verify the signature. Matching hash values support the claim that the document was signed using the corresponding private key.
- A
- 50
What does a digital signature primarily provide in the example described?
- A
A guarantee that the document cannot be copied or shared.
- B
Confidentiality for the document, but no way to check who signed it.
- C
A method for recovering the signer’s private key from the document.
- D
Evidence about the document’s integrity and the identity associated with its signing key, rather than confidentiality for the document.
Correct answer
DEvidence about the document’s integrity and the identity associated with its signing key, rather than confidentiality for the document.
Explanation
A digital signature can help verify that a document matches the signed hash and was signed using the private key corresponding to a trusted public key. It does not, by itself, hide the document’s contents.
- A
- 51
What key must remain secret to prevent others from creating signatures that appear to come from its owner?
- A
The owner’s private key.
- B
The document’s hash value.
- C
The owner’s public key.
- D
The public hash-function algorithm.
Correct answer
AThe owner’s private key.
Explanation
Digital-signature security depends on keeping the private key private. The public key can be shared so others can verify signatures.
- A
- 52
How does a passkey account typically begin registration?
- A
The user sends a memorable password and the device stores its plaintext in the website’s database.
- B
The website sends the user’s private key to the device by email.
- C
The device generates a key pair for the website and sends the public key and identifying information to the service.
- D
The device sends the same public and private keys to every website the user visits.
Correct answer
CThe device generates a key pair for the website and sends the public key and identifying information to the service.
Explanation
In the described passkey process, the device generates a public-private key pair for a particular website or app, then sends the public key and identifying information to that service.
- A
- 53
What may a device ask the user to provide when creating a passkey?
- A
The website’s encryption algorithm, so the user can generate the server’s key.
- B
A plaintext password that must be reused for every website.
- C
The user’s private key, so the website can store a backup copy.
- D
A fingerprint, face scan, or PIN to indicate that the user is authorized to use the device.
Correct answer
DA fingerprint, face scan, or PIN to indicate that the user is authorized to use the device.
Explanation
The device may use biometrics or a PIN to establish that the person is authorized to use it. This is distinct from sending a password to the website.
- A
- 54
How does a user typically authenticate with a passkey on a later visit?
- A
The website sends a challenge that the device signs with the account’s private key; the website checks it with the stored public key.
- B
The website sends the user’s old password back, and the user confirms that it is correct.
- C
The website hashes a new password and accepts it without checking any stored account information.
- D
The device sends its private key to the website so the website can compare it with the public key.
Correct answer
AThe website sends a challenge that the device signs with the account’s private key; the website checks it with the stored public key.
Explanation
The service sends a challenge, and the device signs it with the relevant private key. The service verifies the signature using the public key registered for the account.
- A
- 55
What is a major practical requirement of using passkeys?
- A
The user must reveal the private key to every website that supports passkeys.
- B
The user must retain access to the device or a secure synchronization method holding the relevant keys.
- C
The user must remember a different plaintext password for every login.
- D
The service must keep a copy of the user’s fingerprint in its password database.
Correct answer
BThe user must retain access to the device or a secure synchronization method holding the relevant keys.
Explanation
Passkeys rely on access to the relevant private key. Losing the device or the keys can create a risk of losing account access, while secure synchronization can help make keys available across devices.
- A
- 56
What is the intended account-security benefit of passkeys?
- A
They can replace passwords with key-based authentication, reducing the need to create and remember many passwords.
- B
They make every account accessible without identifying or authenticating the user.
- C
They eliminate the need to protect devices that store private keys.
- D
They let websites recover users’ passwords from their public keys.
Correct answer
AThey can replace passwords with key-based authentication, reducing the need to create and remember many passwords.
Explanation
Passkeys support passwordless authentication by using public and private keys. They reduce reliance on users remembering many passwords, but the devices and keys still need protection.
- A
- 57
What is the central distinction between encryption in transit and end-to-end encryption?
- A
Encryption in transit uses public keys, while end-to-end encryption uses no keys.
- B
Encryption in transit may protect a connection to an intermediary, while end-to-end encryption protects the content so only the communicating endpoints can read it.
- C
Encryption in transit prevents the sender from reading a message, while end-to-end encryption prevents the recipient from reading it.
- D
Encryption in transit protects stored files, while end-to-end encryption protects only passwords.
Correct answer
BEncryption in transit may protect a connection to an intermediary, while end-to-end encryption protects the content so only the communicating endpoints can read it.
Explanation
A connection to a service may be encrypted in transit while the service itself can still access the data. End-to-end encryption is intended to prevent intermediaries from reading the communication.
- A
- 58
Alice and Bob each have an encrypted connection to an email provider. What does that alone establish?
- A
It proves that the provider cannot store or process either person’s messages.
- B
It guarantees that their messages are encrypted end-to-end between Alice and Bob.
- C
It protects each connection to the provider, but does not necessarily prevent the provider from reading their emails.
- D
It ensures that no intermediary participates in delivering their messages.
Correct answer
CIt protects each connection to the provider, but does not necessarily prevent the provider from reading their emails.
Explanation
Encryption on Alice’s and Bob’s separate connections to a provider does not necessarily encrypt the messages from one endpoint to the other. The provider may still be able to access message contents.
- A
- 59
Why might a user prefer end-to-end encrypted messaging?
- A
It is designed so that intermediaries see ciphertext rather than readable message content.
- B
It guarantees that the user never needs an encryption key.
- C
It lets the service read messages more easily while they travel between users.
- D
It ensures that deleted messages remain recoverable by the sender.
Correct answer
AIt is designed so that intermediaries see ciphertext rather than readable message content.
Explanation
With correctly implemented end-to-end encryption, intermediaries handling the communication should not be able to read the message contents without the relevant keys.
- A
- 60
What usually happens when a user empties a computer’s Trash or Recycle Bin?
- A
The operating system encrypts the file and stores its key in the same folder.
- B
The operating system securely destroys the physical storage locations holding the file.
- C
The operating system typically removes the file’s reference and frees the space for reuse, rather than immediately overwriting every bit.
- D
The operating system immediately changes every bit of the file to a random value.
Correct answer
CThe operating system typically removes the file’s reference and frees the space for reuse, rather than immediately overwriting every bit.
Explanation
Deleting a file generally removes or forgets the system’s reference to its storage locations and marks the space available for reuse. The original data may remain until overwritten.
- A
- 61
Why might remnants of a deleted file remain recoverable for a time?
- A
The storage locations may not yet have been overwritten, even though the system no longer lists the file.
- B
The operating system preserves the file’s full contents in the Recycle Bin forever.
- C
The file is automatically copied into every user’s password database.
- D
The file’s hash function recreates its original contents after deletion.
Correct answer
AThe storage locations may not yet have been overwritten, even though the system no longer lists the file.
Explanation
Ordinary deletion often leaves the stored bits in place until the system reuses and overwrites that space. Parts of the file may therefore remain for a time.
- A
- 62
What is the basic principle of secure deletion by overwriting?
- A
Move the file to another folder and remove the folder’s visible icon.
- B
Hash the file and store the hash in the same locations as the original.
- C
Replace the file’s stored bit pattern with zeros, ones, or other data so the original content is no longer represented there.
- D
Remove the file’s name while leaving all its data unchanged indefinitely.
Correct answer
CReplace the file’s stored bit pattern with zeros, ones, or other data so the original content is no longer represented there.
Explanation
Overwriting changes the stored bits so they no longer represent the original file. This is more deliberate than simply removing the system’s reference to the data.
- A
- 63
What does encryption at rest protect?
- A
Data stored on a device when it is not actively being used or transmitted.
- B
A file only while it is being actively edited.
- C
Data only while it travels between two people over a network.
- D
A message only after it has been printed on paper.
Correct answer
AData stored on a device when it is not actively being used or transmitted.
Explanation
Encryption at rest protects stored data on a device. Encryption in transit instead concerns data moving from one point to another.
- A
- 64
How does full-disk encryption help protect a stolen device?
- A
It makes the device’s public key secret while leaving all stored files readable.
- B
It prevents the attacker from physically taking or using the device.
- C
If the device is locked and the attacker lacks the means to unlock it, the stored data remains encrypted and difficult to access.
- D
It automatically deletes all files as soon as the device is unplugged.
Correct answer
CIf the device is locked and the attacker lacks the means to unlock it, the stored data remains encrypted and difficult to access.
Explanation
Full-disk encryption protects stored data when the device is locked, assuming the attacker cannot provide the needed password or other authentication factor.
- A
- 65
What happens when an authorized user unlocks a device protected by full-disk encryption?
- A
The system sends the user’s private key to every website visited.
- B
The system uses the user’s authentication to make the encrypted data available for use.
- C
The system converts the entire disk into a publicly readable password database.
- D
The system deletes the encrypted data and recreates it from a backup.
Correct answer
BThe system uses the user’s authentication to make the encrypted data available for use.
Explanation
After successful authentication, the device makes the data usable, typically by decrypting it as needed.
- A
- 66
Why can full-disk encryption help when disposing of or reselling a device?
- A
If the data has remained encrypted and the new owner lacks the credentials or keys, the old data is much harder to access.
- B
It lets the new owner decrypt the old data using the device’s public key.
- C
It guarantees that every storage bit has been overwritten with zeros.
- D
It physically removes the storage hardware from the device.
Correct answer
AIf the data has remained encrypted and the new owner lacks the credentials or keys, the old data is much harder to access.
Explanation
With full-disk encryption, stored data is already encrypted. If the new owner cannot unlock it, the data is much harder to recover, though encryption is not the same thing as physically destroying the storage.
- A
- 67
Why is enabling full-disk encryption early in a device’s life especially useful for some storage hardware?
- A
The device can generate a public key only before its first login.
- B
Encryption makes it unnecessary to keep backups of important files.
- C
Encryption prevents the hardware from ever developing faults.
- D
Storage may wear out, and the device may no longer be able to overwrite every location containing old data.
Correct answer
DStorage may wear out, and the device may no longer be able to overwrite every location containing old data.
Explanation
Some storage devices can wear out and may stop allowing particular locations to be overwritten. Encrypting data from the start helps protect data that may remain in such locations.
- A
- 68
What trade-off can full-disk encryption create for a user?
- A
The user must publish the private key so the device can decrypt files.
- B
The user’s data becomes readable to anyone who steals the device.
- C
If the user loses the means of unlocking the device, the user may also lose access to the encrypted data.
- D
The user can access the data only while connected to the original network.
Correct answer
CIf the user loses the means of unlocking the device, the user may also lose access to the encrypted data.
Explanation
Full-disk encryption improves confidentiality but depends on access to the password, biometric, or other unlocking method. Losing access can mean losing access to the data.
- A
- 69
How does ransomware commonly use encryption to extort victims?
- A
An attacker encrypts a victim’s data and demands payment in exchange for the key or assistance to recover it.
- B
An attacker hashes public files and demands payment to reveal their filenames.
- C
An attacker uses a salt to make the victim’s passwords easier to remember.
- D
An attacker encrypts only the attacker’s own files and asks the victim to delete them.
Correct answer
AAn attacker encrypts a victim’s data and demands payment in exchange for the key or assistance to recover it.
Explanation
Ransomware can encrypt data on an accessed system and demand payment for a decryption key. Paying does not guarantee that the attacker will provide a working key.
- A
- 70
What is the key physical distinction between a classical bit and a qubit in the account given?
- A
A classical bit stores a key, while a qubit stores only a password.
- B
A classical bit represents either zero or one, while a qubit can represent a combination of both states.
- C
A classical bit is encrypted, while a qubit is always public.
- D
A classical bit represents four states, while a qubit represents only zero or one.
Correct answer
BA classical bit represents either zero or one, while a qubit can represent a combination of both states.
Explanation
The account contrasts a classical bit, which is either 0 or 1, with a qubit that can represent a combination of states under quantum principles.
- A
- 71
According to the simplified explanation, how does the number of possible simultaneous states scale with the number of qubits?
- A
n qubits can represent exactly 2n states.
- B
n qubits can represent 2n states.
- C
n qubits can represent only n+1 states.
- D
n qubits can represent n2 states.
Correct answer
Bn qubits can represent 2n states.
Explanation
The described scaling is exponential: one qubit corresponds to 2 states, two to 4, and in general n qubits correspond to 2n states.
- A
- 72
Why could quantum computing threaten some current cryptographic protections?
- A
Its potential computing capabilities could make certain large search problems much faster to explore.
- B
It prevents computers from performing encryption in transit.
- C
It automatically reveals every private key whenever a public key is shared.
- D
It makes all hash functions reversible by definition.
Correct answer
AIts potential computing capabilities could make certain large search problems much faster to explore.
Explanation
If quantum computers can explore relevant possibilities far more effectively, security based on the difficulty of certain computations could be weakened.
- A
- 73
What does the discussion suggest about the future of cryptographic algorithms as quantum technology develops?
- A
Only keeping algorithms secret can protect data from quantum computing.
- B
All encryption should be abandoned because quantum computers make secrecy impossible.
- C
Current algorithms will remain secure regardless of changes in computing power.
- D
Security methods will need to evolve and be hardened as computing capabilities change.
Correct answer
DSecurity methods will need to evolve and be hardened as computing capabilities change.
Explanation
The discussion recognizes that cryptographic methods may need to adapt if quantum computing changes the feasibility of attacks.
- A
- 74
What practical attitude toward quantum computing does the discussion recommend for now?
- A
Recognize it as a potential future concern, while focusing on current security practices rather than treating it as an immediate certainty.
- B
Stop using passwords and encryption until every computer becomes quantum-enabled.
- C
Assume that all encrypted data is already readable by attackers.
- D
Rely on secret algorithms because quantum computers cannot analyze them.
Correct answer
ARecognize it as a potential future concern, while focusing on current security practices rather than treating it as an immediate certainty.
Explanation
Quantum computing is presented as a potential concern, but not as a reason to assume that current protections are already useless. Security practices and algorithms can continue to evolve.
- A

Ask anything
We've read this whole study set, so questions about it get the best answers.