Build in-demand skills with a full year of Coursera Plus, now $239. Save now.
Hashing is an encryption technique used in cybersecurity to protect and manage information. Learn more about what hashing is and how it’s used.
![[Featured image] A cybersecurity tech in a gray shirt stands up, looking at a tablet in front of a wall of video security monitors, working with hashing.](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://images.ctfassets.net/wp1lcwdav1p1/1i9Fe0iaZMpZSY2ULAGb6J/e1fc61cbe2239549a261dad3192dcdf7/gettyimages-580501673.webp?w=1500&h=680&q=60&fit=fill&f=faces&fm=jpg&fl=progressive&auto=format%2Ccompress&dpr=1&w=1000)
Hashing in cybersecurity is a technique for converting data values into unique identifiers called hashes for quick yet secure data access.
Hashing works by converting data inputs of various sizes into a fixed-size string of characters, so it can take data such as a name and convert it into a unique hash.
As a one-way function, hashing makes it impossible to recover the original data from the hash, thereby enhancing data integrity.
Concerning hashing versus encryption, hashing transforms plaintext into a unique code that cannot be reversed, whereas encryption scrambles plaintext into unreadable ciphertext, which can be decrypted with a key to make it readable again. Discover what hashing is in this article, including how it works, some use cases, and limitations. If you’re ready to start preparing for a role in cybersecurity, consider pursuing the Google Cybersecurity Professional Certificate. In as little as six months, you can learn how to protect networks, devices, and data from unauthorized access and cyberattacks using security information and event management (SIEM) tools.
Hashing is a data security technique used to convert data values into alternate, unique identifiers called hashes for quick and secure access. Hashing can be used for data security because the one-way process prevents access to or tampering with the source data.
Read more: Data Protection vs. Data Security: What’s the Difference?
A hash function is an algorithm that transforms any amount of data into a fixed-length element or string. A good hash function ensures that even tiny changes in input data will produce dramatically different hash outputs. This property is crucial for security applications, where the hash function must make it nearly impossible to derive the original input from the hash.
In computer science, hashing is a technique used in data structures such as hash tables, where it converts inputs of any size into a fixed-size string of characters, typically in numerical format. You can perform this through hash functions. It takes data, like a name or a file, and creates a unique hash for it.
One of the primary uses of hashing is data retrieval. Hash tables, for instance, use hashing to store and retrieve data efficiently. When you add data to a hash table, the hash function computes a hash for that data. This hash then determines where the data is stored. When you need to retrieve the data, the hash function recalculates the hash and directly accesses the data's location. This process makes data retrieval incredibly quick, regardless of the size of the data.
Another significant use of hashing is in cryptography, specifically for verifying data integrity. In digital signatures, for example, a document’s hash is encrypted with a private key to create the signature. The recipient can then use the sender's public key to decrypt the signature, recompute the hash, and compare it to the received hash. If the hashes match, the document is authentic and untampered with.
When you encrypt plaintext, you scramble it into unreadable ciphertext. Upon receiving the ciphertext, you can apply a relevant key to decrypt it and make it readable again. The process of hashing transforms plaintext into a unique code that you cannot turn back into readable plaintext.
Despite its benefits, hashing does have limitations. A hash collision occurs when different inputs produce the same hash output. While good hash functions make this highly unlikely, it's not impossible. Also, hashing is a one-way function, so you can't get the original data from the hash. While this is good for security, it's not ideal for situations where you need to retrieve the original data.
![[Video Thumbnail] Google Cybersecurity Professional Certificate](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://images.ctfassets.net/wp1lcwdav1p1/57fwu0CBpYGxejGNxZPrk1/e71edc91c0e26e67a5f0d6bc28b479b5/maxresdefault__9_.jpg?auto=format%2Ccompress&dpr=1&w=750&h=450&q=60)
Stay current with what’s trending in multiple industries with Career Chat, a weekly LinkedIn newsletter by Coursera. Then, build or refresh your foundational knowledge in cybersecurity or discover career paths in this field by browsing our additional free digital resources:
Bookmark for quick access: Cybersecurity Glossary: Key Terms & Definitions
Watch on YouTube: How to Become a Cybersecurity Analyst
Hear from an insider: Meet the IT Support Tech Advancing Toward a Cybersecurity Career
Accelerate your career growth with a Coursera Plus subscription. When you enroll in either the monthly or annual option, you’ll get access to over 10,000 courses.


Editorial Team
Coursera’s editorial team is comprised of highly experienced professional editors, writers, and fact...
This content has been made available for informational purposes only. Learners are advised to conduct additional research to ensure that courses and other credentials pursued meet their personal, professional, and financial goals.