How JavaScript uses hashing

https://upload.wikimedia.org/wikipedia/commons/thumb/5/5d/CPT-Hashing-Password-Hashed.svg/712px-CPT-Hashing-Password-Hashed.svg.png This blog post serves to help shed some light on how JavaScript uses hashing but first we'll have to cover the basic terms such as hashing, hash tables, and understanding how it differs from encryption. What is hashing? Hashing is a method used to alter values to conceal the original raw values. It involves applying a hash algorithm or function - a mathematical operation - to a value and getting a hash value as a result. This is done to secure passwords stored in databases so that they're not stored as simple plain text. Hashing is also used in version control as a hash algorithm always produces the same digest when given the same input. So digests of files can be compared to determine if they have been altered or not. Hash Tables Hash tables are store key-value pairs created by hashing algorithms that can receive a number or string and create an i...