To Lecture Notes

IT 231 -- 11/6/12

 

Review Questions

  1. What is a cryptographic hash?
    Ans: A cryptographic hash is an algorithm that takes an arbitrary message (maybe a password) and produces a fixed length hex string of digits. For a good hash algorithm, it is very difficult or impossible to recover the original message from the fixed length hex string.
     
  2. How is a cryptographic hash used to encode passwords?
    Ans: The password is encoded with the hash algorithm. Then the encoded password is stored in the password database.
     
  3. What are some characteristics of a good password?
    Ans: A good password is not found in the dictionary. It contains some digits and/or special characters like !@#$%^&*(){}[];:<>?/.
     
  4. What are some algorithms that are used to create cryptographic hashes?
    Ans: MD5 (Message Digest), SHA1, SHA2 (Secure Hash Algorithm).
     
  5. How can you use Ruby to create a cryptographic hash?

 

Maintaining State