| |
Salt is random data that is added to data before generating a hash code. It is common to store the salt alongside the hash value.Pepper is also random data that is added to data before generating a hash code. Unlike salt, pepper is kept secret. In many cases, pepper isn't stored at all. In other cases, it is securely stored separately from the hash code.
Salt & PepperSalt and pepper make cryptographic hash functions more difficult to reverse. Both salt and pepper may be added to data before hashing it. Passwords are commonly stored as a hash code. This prevents the stored passwords from being used. One common way to break a hash code is to use precomputed tables of hash codes for common passwords known as rainbow tables. Salt and pepper defend against this type of attack.|
| Salt | Pepper | Definition | Random data that is added to data before passing it to a cryptographic hash function. Salt may be stored alongside the hash value. | Random data that is added to data before passing it to a cryptographic hash function. Pepper is kept secret by storing it in a separate secure location or not storing it at all. |
Encryption
This is the complete list of articles we have written about encryption.
If you enjoyed this page, please consider bookmarking Simplicable.
© 2010-2023 Simplicable. All Rights Reserved. Reproduction of materials found on this site, in any form, without explicit permission is prohibited.
View credits & copyrights or citation information for this page.
|