1. Home
  2. Explore
  3. Computer Science
  4. Securing Stored Passwords

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Securing Stored Passwords

  • 109Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Password Storage
Storing passwords as readable English words such as Alice's apple creates a database of
passwords.

109 questions

  1. 1
    Storing passwords as readable English words such as Alice's apple creates a database of
    _____
    passwords.
    Hint

    This term describes information stored in its original, unencrypted form.

    Answer

    plaintext

  2. 2
    If an attacker steals a database containing users' plaintext passwords, they can try those credentials on other services in a
    _____
    attack.
    Hint

    This attack reuses stolen username and password combinations on other sites.

    Answer

    credential stuffing

  3. 3
    To reduce the harm caused by a database breach, a server should store a password's
    _____
    rather than the password itself.
    Hint

    This is the output of applying a one-way function to the password.

    Answer

    hash

  4. 4
    The process that takes a password as input and converts it into a hash value is called
    _____
    .
    Hint

    It is the process performed by a hash function.

    Answer

    hashing

  5. 5
    A program or mathematical operation that converts an input into a hash value is a
    _____
    function.
    Hint

    It is the function represented as a black box in the lesson.

    Answer

    hash

  6. 6
    A weak hash function that maps every password starting with A to the same value leaks the password's first
    _____
    .
    Hint

    The example maps A to one value, B to another, and so on.

    Answer

    letter

  7. 7
    When two different inputs produce the same hash output, the result is a
    _____
    .
    Hint

    This term describes two inputs landing in the same output bucket.

    Answer

    collision

  8. 8
    During account registration, the server hashes the submitted password and stores the username with the resulting
    _____
    .
    Hint

    The original password is discarded after this value is produced.

    Answer

    hash

  9. 9
    When a user logs in, the server hashes the submitted password and compares the result with the stored
    _____
    .
    Hint

    The server does not need the original password to perform this comparison.

    Answer

    hash

  10. 10
    A website that can email a user their original password is likely storing it in a form that is not
    _____
    .
    Hint

    A properly stored password should not be recoverable in its original form by the website.

    Answer

    secure

  11. 11
    If a service emails a user their password, the user should avoid reusing that password and consider stopping use of the
    _____
    .
    Hint

    This is the website or application that sent the recoverable password.

    Answer

    service

  12. 12
    Modern password storage should use a suitable one-way key derivation function that makes each password-guessing trial
    _____
    .
    Hint

    The goal is to raise the time or resource cost of guessing.

    Answer

    expensive

  13. 13
    NIST recommends that memorized secrets be
    _____
    and hashed to resist offline attacks.
    Hint

    This adds a value to each password's hashing process.

    Answer

    salted

  14. 14
    The purpose of a password key derivation function is to make the cost of a guessing attack high or
    _____
    .
    Hint

    This word describes a cost so high that carrying out the attack is impractical.

    Answer

    prohibitive

  15. 15
    Rather than inventing a new password-storage scheme, developers should rely on well-reviewed code from a software
    _____
    .
    Hint

    This is reusable third-party code that implements established functionality.

    Answer

    library

  16. 16
    A hash function that takes an input of arbitrary length and produces an output of fixed length has a potentially infinite domain and a finite
    _____
    .
    Hint

    In this mathematical relationship, this is the set of possible outputs.

    Answer

    range

  17. 17
    Because hash outputs have fixed length while inputs can vary in length, different inputs can map to the same output, so hashes are generally
    _____
    .
    Hint

    This describes why a hash should not be reliably reversible to its original input.

    Answer

    one-way

  18. 18
    A password hash is not normally reversed; instead, an attacker can test guesses by hashing them and comparing the resulting
    _____
    .
    Hint

    The attacker compares the outputs of the same hash function.

    Answer

    values

  19. 19
    Trying likely words from a list, hashing each one, and comparing the outputs against stolen hashes is a
    _____
    attack.
    Hint

    The attack uses a prepared list of likely words or passwords.

    Answer

    dictionary

  20. 20
    Trying passwords systematically, such as sequences of numbers and letters, is a
    _____
    attack.
    Hint

    This approach tests many or all possible candidates rather than relying on a word list.

    Answer

    brute-force

  21. 21
    A precomputed table containing candidate passwords and their previously calculated hashes is called a
    _____
    table.
    Hint

    This colorful term refers to a stored collection of password-hash pairs.

    Answer

    rainbow

  22. 22
    Precomputing hashes for many likely passwords can speed up an attack, but storing enough results may require enormous
    _____
    space.
    Hint

    The limitation concerns the size of the hard drives needed for the table.

    Answer

    storage

  23. 23
    Adding a salt to password hashing helps prevent users with the same password from having the same stored
    _____
    .
    Hint

    Different salt values change the output even when the passwords match.

    Answer

    hash

  24. 24
    A password salt is an additional input to the hash function; it is not intended to be
    _____
    .
    Hint

    The salt may be stored alongside the hash.

    Answer

    secret

  25. 25
    A server can store a user's salt as part of the stored
    _____
    value.
    Hint

    The salt can be included at the beginning of this stored string.

    Answer

    hash

  26. 26
    When a salted-password user logs in, the server retrieves the salt, hashes the submitted password with it, and compares the result with the stored
    _____
    .
    Hint

    This comparison verifies whether the password is correct.

    Answer

    hash

  27. 27
    For salts to reduce matching hashes among users with the same password, different users should receive
    _____
    salts.
    Hint

    If the salts match as well as the passwords, the outputs can match.

    Answer

    different

  28. 28
    If two users happen to receive the same salt and choose the same password, their hashes may still be
    _____
    .
    Hint

    The same inputs to a deterministic function produce the same output.

    Answer

    identical

  29. 29
    A well-designed modern password hash can make repeated hashing unnecessary because its intended security characteristics are built into the
    _____
    .
    Hint

    This is the algorithm used to transform the password.

    Answer

    function

  30. 30
    The identifiers between dollar signs in some stored password hashes can indicate which hash
    _____
    was used.
    Hint

    This identifier tells the system how the stored value was generated.

    Answer

    function

  31. 31
    SHA-2 and SHA-3 are families of recommended cryptographic
    _____
    functions.
    Hint

    They turn inputs into fixed-length outputs.

    Answer

    hash

  32. 32
    Cryptographic hashes can represent entire documents, not just
    _____
    .
    Hint

    A hash function can accept an arbitrary-length input such as an essay or contract.

    Answer

    passwords

  33. 33
    Hash functions can help check the
    _____
    and integrity of messages.
    Hint

    This concerns whether a message is genuine, as well as whether it was altered.

    Answer

    authenticity

  34. 34
    The study and practice of securing data is called
    _____
    .
    Hint

    This field includes hashing and encryption.

    Answer

    cryptography

  35. 35
    A code maps code words to the actual message or true
    _____
    they represent.
    Hint

    This is the meaning that the code words stand for.

    Answer

    reading

  36. 36
    A message in its original, readable form before coding or encryption is called
    _____
    .
    Hint

    This is the original message that a sender wants to communicate.

    Answer

    plaintext

  37. 37
    Converting a plaintext message into code words is to
    _____
    it.
    Hint

    This is the sender's operation when using a codebook.

    Answer

    encode

  38. 38
    Using a codebook to turn received code words back into the original message is to
    _____
    .
    Hint

    This reverses the encoding process.

    Answer

    decode

  39. 39
    Unlike codes based on words or phrases,
    _____
    often operate on individual letters or bits.
    Hint

    These methods apply algorithmic transformations to smaller units of a message.

    Answer

    ciphers

  40. 40
    Converting plaintext into ciphertext with an algorithm is to
    _____
    or encrypt the message.
    Hint

    This is synonymous with encrypting in the lesson.

    Answer

    encipher

  41. 41
    Taking ciphertext and restoring its readable plaintext is to
    _____
    or decrypt it.
    Hint

    This is synonymous with decrypting in the lesson.

    Answer

    decipher

  42. 42
    A value used to configure a cipher for a particular encryption process is called a
    _____
    .
    Hint

    It is the information used along with the algorithm to control encryption and decryption.

    Answer

    key

  43. 43
    A cipher's algorithm can be public, while the information that should generally remain secret is the
    _____
    .
    Hint

    This is the protected value that configures the algorithm.

    Answer

    key

  44. 44
    A Caesar cipher is a rotational cipher that shifts each letter by a chosen number of positions in the
    _____
    .
    Hint

    For example, with a shift of one, A becomes B.

    Answer

    alphabet

  45. 45
    In a Caesar cipher with a key of 1, the plaintext letter A becomes the ciphertext letter
    _____
    .
    Hint

    The cipher shifts the letter forward by one position.

    Answer

    B

  46. 46
    ROT13 shifts letters by 13 places and is useful for casual scrambling, but it is not intended to provide strong
    _____
    .
    Hint

    It can be undone easily and is sometimes used to hide spoilers.

    Answer

    security

  47. 47
    A rotational cipher with a key of 26 leaves English letters unchanged because the alphabet has
    _____
    letters.
    Hint

    The shift goes all the way around the English alphabet.

    Answer

    26

  48. 48
    An attacker can break a Caesar cipher by testing each possible key, an example of a
    _____
    attack.
    Hint

    The attacker systematically tries the small set of possible shifts.

    Answer

    brute-force

  49. 49
    The process of analyzing ciphertext to discover its plaintext or key is called
    _____
    .
    Hint

    It is the activity of trying to break or understand a cipher.

    Answer

    cryptanalysis

  50. 50
    Encryption that requires both sender and receiver to use the same key is called
    _____
    key encryption.
    Hint

    The sender and receiver share one secret key.

    Answer

    symmetric

  51. 51
    Secret key cryptography relies on keeping the shared encryption key
    _____
    .
    Hint

    Both parties must protect this key from others.

    Answer

    secret

  52. 52
    AES and triple DES are examples of commonly used
    _____
    key encryption algorithms.
    Hint

    Both sender and receiver use the same key with these algorithms.

    Answer

    symmetric

  53. 53
    In symmetric encryption, the sender combines plaintext and a key to produce
    _____
    .
    Hint

    This is the scrambled output sent to the recipient.

    Answer

    ciphertext

  54. 54
    The recipient uses the shared key and the ciphertext to recover the
    _____
    .
    Hint

    This is the original readable message.

    Answer

    plaintext

  55. 55
    A fundamental challenge for symmetric encryption is securely establishing a shared
    _____
    before communicating.
    Hint

    The sender and receiver need to agree on this protected value in advance.

    Answer

    secret

  56. 56
    Encryption using a public key and a private key is called
    _____
    key encryption.
    Hint

    The two keys have different roles rather than being the same shared key.

    Answer

    asymmetric

  57. 57
    In public key encryption, the key that may be shared openly is the
    _____
    key.
    Hint

    It can be posted online or shared with correspondents.

    Answer

    public

  58. 58
    In public key encryption, the key that its owner must keep private is the
    _____
    key.
    Hint

    It should remain on the owner's device and not be shared.

    Answer

    private

  59. 59
    To send someone an encrypted message with public key encryption, the sender encrypts it using the recipient's
    _____
    key.
    Hint

    This key is shared with the world by its owner.

    Answer

    public

  60. 60
    A message encrypted with someone's public key can be decrypted by that person's corresponding
    _____
    key.
    Hint

    Only the owner should possess this key.

    Answer

    private

  61. 61
    RSA public key cryptography relies on the difficulty of factoring the product of two large
    _____
    numbers.
    Hint

    Each of the two numbers is divisible only by itself and 1.

    Answer

    prime

  62. 62
    In the simplified RSA description, multiplying two large primes produces a value labeled
    _____
    .
    Hint

    This value is used in the later modular arithmetic.

    Answer

    n

  63. 63
    RSA encryption and decryption use modular arithmetic, in which the mod operation finds a
    _____
    .
    Hint

    This is what remains after division.

    Answer

    remainder

  64. 64
    An algorithm designed to let two parties establish a shared secret over a public channel is
    _____
    .
    Hint

    Alice and Bob can exchange values without sending the shared secret itself.

    Answer

    Diffie-Hellman

  65. 65
    In the Diffie-Hellman example, Alice and Bob agree on a generator and a large prime, while each keeps a separate
    _____
    value private.
    Hint

    Each party uses this value in its own calculation and does not send it.

    Answer

    key

  66. 66
    After completing the Diffie-Hellman exchange, both parties can use their matching result as a shared
    _____
    .
    Hint

    This value can then be used with a symmetric cipher.

    Answer

    secret

  67. 67
    A digital signature begins by hashing the message or document to create a fixed-length
    _____
    .
    Hint

    This is a short representation of the document.

    Answer

    hash

  68. 68
    To create a digital signature, the signer uses their private key with the document's
    _____
    .
    Hint

    The signature algorithm operates on the short representation of the document.

    Answer

    hash

  69. 69
    The output produced when a signer applies their private key to a document hash is the digital
    _____
    .
    Hint

    The recipient can later verify this value.

    Answer

    signature

  70. 70
    To verify a signed document, the recipient hashes the received document and decrypts the signature using the signer's
    _____
    key.
    Hint

    This key is available to recipients who need to check the signature.

    Answer

    public

  71. 71
    A digital signature is valid when the hash calculated from the document matches the hash recovered from the
    _____
    .
    Hint

    The recipient processes this value with the signer's public key.

    Answer

    signature

  72. 72
    Digital signatures provide a way to verify a document's origin and integrity, rather than keeping the document
    _____
    .
    Hint

    The document itself may be readable by both sender and receiver.

    Answer

    private

  73. 73
    The security of a digital signature depends on protecting the signer's
    _____
    key.
    Hint

    If this key is stolen, an attacker may be able to sign as its owner.

    Answer

    private

  74. 74
    A public key must be reliably associated with its owner through a registry or another system of
    _____
    .
    Hint

    Recipients need confidence that the key really belongs to the claimed signer.

    Answer

    trust

  75. 75
    A private key can be used to create a signature, and the corresponding public key can be used to
    _____
    it.
    Hint

    This is the recipient's check of the claimed signature.

    Answer

    verify

  76. 76
    Passkeys are an implementation of the web authentication standard that can support
    _____
    accounts.
    Hint

    Users need not create or memorize a conventional password for these accounts.

    Answer

    passwordless

  77. 77
    When registering a passkey, a device generates a public and private key pair for a particular website or
    _____
    .
    Hint

    The pair is specific to the online service being registered with.

    Answer

    app

  78. 78
    During passkey registration, the device sends the website the public key and identifying information, but not the
    _____
    key.
    Hint

    This key stays on the user's device or within their software.

    Answer

    private

  79. 79
    A fingerprint, face scan, or PIN can help demonstrate that the user is authorized to use the device that holds a
    _____
    .
    Hint

    This is the credential used instead of a conventional password.

    Answer

    passkey

  80. 80
    When a passkey user logs in, the website sends a randomly generated
    _____
    for the device to sign.
    Hint

    This is the temporary message that the site asks the device to sign.

    Answer

    challenge

  81. 81
    A passkey device signs the website's challenge with its
    _____
    key.
    Hint

    The device uses the key that was not shared with the website.

    Answer

    private

  82. 82
    The website verifies a passkey login by checking the signature with the user's stored
    _____
    key.
    Hint

    This is the key received by the website during registration.

    Answer

    public

  83. 83
    Passkeys reduce the need to remember many passwords, but users still need access to the device or synchronized keys that hold their
    _____
    keys.
    Hint

    These are the keys needed to sign future login challenges.

    Answer

    private

  84. 84
    When a provider synchronizes passkeys across devices, it should do so without gaining access to the users'
    _____
    keys.
    Hint

    These are the secret parts of the key pairs.

    Answer

    private

  85. 85
    A secure connection between a user and an email provider does not necessarily mean messages are encrypted from sender to
    _____
    .
    Hint

    The provider may be able to access messages between these two people.

    Answer

    recipient

  86. 86
    Data protected while traveling between a user and a service is said to be encrypted in
    _____
    .
    Hint

    This describes data moving from one point to another.

    Answer

    transit

  87. 87
    HTTPS indicates a secure connection between a browser and a website, but it does not by itself guarantee
    _____
    -to-end encryption.
    Hint

    This stronger form protects data between the communicating users despite intermediaries.

    Answer

    end

  88. 88
    Encryption that ensures only the communicating endpoints can read the message is called
    _____
    encryption.
    Hint

    The name indicates that protection extends between the two communicating users.

    Answer

    end-to-end

  89. 89
    With end-to-end encryption, an intermediary without the key should see only the message's
    _____
    .
    Hint

    This is the scrambled form of the message.

    Answer

    ciphertext

  90. 90
    Zoom or an email provider may be able to access communications if protection ends at the provider rather than being
    _____
    -to-end.
    Hint

    The stronger protection must extend from one communicating user to the other.

    Answer

    end

  91. 91
    Whether users can use end-to-end encryption depends on whether their chosen service
    _____
    it.
    Hint

    The user may need to choose a service or feature that provides this protection.

    Answer

    offers

  92. 92
    Moving a file to the Recycle Bin or Trash usually removes its listing but does not immediately erase its underlying
    _____
    .
    Hint

    The file's bits may remain on the storage device.

    Answer

    data

  93. 93
    After a file is deleted, an operating system typically forgets its location and marks the space as available for
    _____
    .
    Hint

    Later files may occupy the same storage space.

    Answer

    reuse

  94. 94
    Until deleted file space is overwritten, remnants of the file may remain on the storage
    _____
    .
    Hint

    This could be a hard drive, solid state drive, or USB stick.

    Answer

    device

  95. 95
    Secure deletion aims to overwrite a file's bits so that the original information is effectively
    _____
    .
    Hint

    The old pattern should no longer remain available to recover.

    Answer

    gone

  96. 96
    A secure deletion process can overwrite a file with zeros, ones, or
    _____
    bits.
    Hint

    This option replaces the old pattern with an unpredictable new pattern.

    Answer

    random

  97. 97
    Full-disk encryption is an example of encryption
    _____
    rest, which protects data while it is stored on a device.
    Hint

    The phrase contrasts with encryption in transit.

    Answer

    at

  98. 98
    With full-disk encryption enabled, data should remain unreadable while the device is locked unless the user can
    _____
    it.
    Hint

    The user may do this with a password or biometric.

    Answer

    unlock

  99. 99
    Full-disk encryption can protect data on a stolen device if the device is locked and the attacker cannot provide the required password or
    _____
    .
    Hint

    A fingerprint or face scan is an example of this type of authentication factor.

    Answer

    biometric

  100. 100
    When a device is encrypted at rest, its stored bits should look like
    _____
    data to someone without the key.
    Hint

    The encrypted storage should not reveal the readable original.

    Answer

    random

  101. 101
    Full-disk encryption can help protect data when a device is resold because the buyer cannot decrypt it without the original
    _____
    .
    Hint

    This is one possible credential used to unlock the encrypted device.

    Answer

    password

  102. 102
    Because storage hardware can wear out and stop accepting new bit patterns, encryption at rest is best enabled when a device is first
    _____
    .
    Hint

    The recommendation is to protect data from the beginning of the device's use.

    Answer

    acquired

  103. 103
    A user who loses the credentials needed for full-disk encryption may lose access to the data, illustrating a trade-off between security and
    _____
    .
    Hint

    This concerns how convenient a system is to use.

    Answer

    usability

  104. 104
    Malware that encrypts a victim's data and demands payment for a decryption key is called
    _____
    .
    Hint

    The name reflects the demand made in exchange for restoring access.

    Answer

    ransomware

  105. 105
    Ransomware attackers may demand payment in
    _____
    in exchange for the key to decrypt the victim's data.
    Hint

    This is a cryptocurrency mentioned as a possible ransom payment.

    Answer

    bitcoins

  106. 106
    A quantum bit, or qubit, can represent a zero and a one at the same
    _____
    .
    Hint

    This is what distinguishes the described quantum state from an ordinary bit.

    Answer

    time

  107. 107
    In the example, two qubits can represent four states at once, while three qubits can represent
    _____
    states at once.
    Hint

    Each added qubit doubles the number of represented states in the example.

    Answer

    eight

  108. 108
    If attackers gain access to sufficiently powerful quantum computers before security systems adapt, some current cryptographic protections could become
    _____
    .
    Hint

    The concern is that attacks could become feasible much faster.

    Answer

    insecure

  109. 109
    As quantum technologies develop, cryptographic algorithms will need to
    _____
    to preserve data security.
    Hint

    They must change in response to new computing capabilities.

    Answer

    evolve

1 of 109
Question 1 of 109

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent