Hashing

Cards (13)

  • What is the purpose of a hashing function?
    To transform a string of characters into a fixed length value or key that represents the original input string
  • How does a hashing function generate a hash value?
    It uses an algorithm that converts the inputted data into a hash value
  • What happens to the hash value if there is a slight change in the original message?
    The hash value will be totally different
  • What is the main difference between hashing and encryption?
    Hashing is a one-way process, while encryption can be reversed
  • Can you retrieve the original value from a hashed value?
    No, you cannot retrieve the original value from the hashed value
  • Why is hashing ideal for storing passwords?
    It prevents passwords from being stored in plain text
  • What happens when a user logs into an online system using a hashed password?
    The system applies the hashing function to the entered password and compares it to the stored hash value
  • What can a hacker see if they access a password file that uses hashing?

    They can only see the hashed values of the passwords
  • What is the implication of hashing passwords in terms of security?
    Even if the hashed password is intercepted, it cannot be reverse-engineered to obtain the original password
  • How does hashing improve data structure operations like searching and insertion?
    It allows for immediate access to items without needing to search through memory
  • What are the key uses of hashing?
    • Preventing storage of passwords in plain text
    • Verifying user passwords without sending them in plain text
    • Quick searching, insertion, and deletion of data in data structures
  • What is the significance of hashing in the context of user account creation?
    It ensures that user passwords are securely stored and not exposed
  • How does the use of hashing in data structures differ from traditional searching methods?
    Hashing eliminates the need for sorting and allows for immediate access