Problem Statement
Which statement best describes hashing compared to encryption?
Explanation
Hashing transforms data into a fixed-length value (hash) and is designed to be one-way: you cannot feasibly get the original data back from the hash. It’s ideal for verifying integrity or storing passwords (with salt). Encryption transforms data so it can be reversed (decrypted) using a key. It ensures confidentiality of data in transit or at rest. Knowing when to use hashing vs encryption is vital: use hashing for integrity or password storage, and encryption when you need to recover original data.
