'Hash in Laravel

there. I'm preparing a Laravel test, and there's a question that I think is not correct. When you should use a hash? The available answers are:

  • When you want to compress the contents of a file.
  • When you want to securely store credit card information so you can use it later.
  • When you want to secure sen a password over email.
  • When you want to identify the contents of a file without storing the entire file

Since hashing is for encrypting passwords (not to send'em over email) none of this answers seem to be correct. What do you think?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source