The Wayback Machine - https://web.archive.org/web/20240817124449/https://www.geeksforgeeks.org/hash-functions-system-security/
Open In App

Hash Functions in System Security

Last Updated : 21 Mar, 2023
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Hash Function is a function that has a huge role in making a System Secure as it converts normal data given to it as an irregular value of fixed length. We can imagine it to be a Shaker in our homes. 
When we put data into this function it outputs an irregular value. The Irregular value it outputs is known as “Hash Value”.Hash Values are simply numbers but are often written in Hexadecimal. Computers manage values as Binary. The hash value is also data and is often managed in Binary. 

1

A hash function is basically performing some calculations in the computer. Data values that are its output are of fixed length. Length always varies according to the hash function. Value doesn’t vary even if there is a large or small value.  

2

If given the same input, two hash functions will invariably produce the same output. Even if input data entered differs by a single bit, huge change in their output values. Even if input data entered differs huge, there is a very  minimal chance that the hash values produced will be identical. If they are equal it is known as “Hash Collision”.  

3

Converting Hash Codes to their original value is an impossible task to perform. This is the main difference between Encryption as Hash Function.  

4

 

 Features of hash functions in system security:

One-way function: Hash functions are designed to be one-way functions, meaning that it is easy to compute the hash value for a given input, but difficult to compute the input for a given hash value. This property makes hash functions useful for verifying the integrity of data, as any changes to the data will result in a different hash value.

Deterministic: Hash functions are deterministic, meaning that given the same input, the output will always be the same. This makes hash functions useful for verifying the authenticity of data, as any changes to the data will result in a different hash value.

Fixed-size output: Hash functions produce a fixed-size output, regardless of the size of the input. This property makes hash functions useful for storing and transmitting data, as the hash value can be stored or transmitted more efficiently than the original data.

Collision resistance: Hash functions should be designed to be collision resistant, meaning that it is difficult to find two different inputs that produce the same hash value. This property ensures that attackers cannot create a false message that has the same hash value as a legitimate message.

Non-reversible: Hash functions are non-reversible, meaning that it is difficult or impossible to reverse the process of generating a hash value to recover the original input. This property makes hash functions useful for storing passwords or other sensitive information, as the original input cannot be recovered from the hash value.

Advantages:

Data integrity: Hash functions are useful for ensuring the integrity of data, as any changes to the data will result in a different hash value. This property makes hash functions a valuable tool for detecting data tampering or corruption.

Message authentication: Hash functions are useful for verifying the authenticity of messages, as any changes to the message will result in a different hash value. This property makes hash functions a valuable tool for verifying the source of a message and detecting message tampering.

Password storage: Hash functions are useful for storing passwords in a secure manner. Hashing the password ensures that the original password cannot be recovered from the hash value, making it more difficult for attackers to access user accounts.

Fast computation: Hash functions are designed to be fast to compute, making them useful for a variety of applications where efficiency is important.

Disadvantages:

Collision attacks: Hash functions are vulnerable to collision attacks, where an attacker tries to find two different inputs that produce the same hash value. This can compromise the security of hash-based protocols, such as digital signatures or message authentication codes.

Rainbow table attacks: Hash functions are vulnerable to rainbow table attacks, where an attacker precomputes a table of hash values and their corresponding inputs, making it easier to crack password hashes.

Hash function weaknesses: Some hash functions have known weaknesses, such as the MD5 hash function, which is vulnerable to collision attacks. It is important to choose a hash function that is secure for the intended application.

Limited input size: Hash functions produce a fixed-size output, regardless of the size of the input. This can lead to collisions if the input size is larger than the hash function output size.


Previous Article
Next Article

Similar Reads

How Security System Should Evolve to Handle Cyber Security Threats and Vulnerabilities?
Stories of organizations paralyzed by cybersecurity threats and vulnerabilities are at their peak. According to a report published by Symantec Corp, India is one of the top five countries that have become the victim of cyber crime. Nowadays, modern technologies such as cloud computing, IoT, cognitive computing, etc. are categorized as the critical
8 min read
Difference between Cyber Security and Information Security
The terms Cyber Security and Information Security are often used interchangeably. As they both are responsible for the security and protecting the computer system from threats and information breaches and often Cybersecurity and information security are so closely linked that they may seem synonymous and unfortunately, they are used synonymously. I
4 min read
Difference between Network Security and Cyber Security
Network Security: Network Security is the measures taken by any enterprise or organization to secure its computer network and data using both hardware and software systems. This aims at securing the confidentiality and accessibility of the data and network. Every company or organization that handles a large amount of data, has a degree of solutions
4 min read
Difference between Information Security and Network Security
Introduction : Information Security :-Information Security refers to the measures taken to protect and secure information and information systems from unauthorized access, use, disclosure, disruption, modification, or destruction. This includes protecting data and information in physical, technical and administrative ways to ensure its confidential
3 min read
Difference between Application Security and Network Security
1. Application Security :Application Security, as name suggests, is a security program that directly deals with applications themselves. Its goal is to identify, rectify, and correct security issues in applications within organization. It is totally based upon identifying and fixing vulnerabilities that correspond to weakness or CWEs. Its testing a
2 min read
Difference Between Security Engineer and Security Architect
Security engineers are mainly engineers who occupy a special(technical) role in an organization. The major role of a security engineer is to protect any sensitive information which is a vital part of that company from any theft or hack, by implementing and monitoring the computer and network security protocols. Nowadays, technology is far the most
5 min read
Cybersecurity vs Network Security vs Information Security
The security of a computer network is a crucial task. It is a process of ensuring confidentiality and integrity. A system is said to be secure if its resources are used and accessed as intended under all the circumstances, but no system can guarantee absolute security from several of various malicious threats and unauthorized access. In this articl
3 min read
Difference between Software Security and Cyber Security
Software SecuritySoftware Security as the name suggests, is a type of security used to protect or secure program from malicious attacks or hacking. Types of software attacks include viruses, bugs, cookies, password attacks, malware attacks, buffer overflow, spoofing, etc. Absolute, Norton, McAfee, etc., are some popular companies that manage softwa
4 min read
What is Mobile Security in Cyber Security?
Mobile device security is important to keep our smartphones, tablets, and other portable devices safe from cyber criminals and hackers. The main goal of mobile device security is to keep our devices and other electronic devices safe from being hacked or other illegal activities. In our daily lives, it is very crucial to protect our private informat
9 min read
Principle of Information System Security : History
Information security (IS) is designed to protect the confidentiality, integrity and availability of data from those with malicious intentions of misusing that data in many manners. These are set of techniques used for managing the tools and policies to prevent and detect information stored in digital or non-digital media. It is often confused with
6 min read
Principle of Information System Security
Information System Security or INFOSEC refers to the process of providing protection to the computers, networks and the associated data. With the advent of technology, the more the information is stored over wide networks, the more crucial it gets to protect it from the unauthorized which might misuse the same. Every organisation has the data sets
4 min read
Cyber System Security
Cyber System Security as the name suggests, it protects our system from cyber attacks, malicious attacks. It is basically to advance our security of the system so that we can prevent unauthorized access of our system from attacker. In today's world the attacker become more advanced to crack the security of any system so it is our responsibility to
2 min read
DNSSEC (Domain Name System Security Extensions) Implementation
Domain Name System Security Extensions(DNSSEC) is a combination of protocols and cryptographic technology(digital signature) for Domain Name System (DNS) and developed for integrity and security enhancement. Cyberattacks and DNS manipulation are the key concerns for Domain Name System Security Extensions(DNSSEC) as to tackle and prevent phishing, d
9 min read
What is Embedded System Security?
Embedded Systems have become the world's critical components in different industries such as automotive, telecommunication, medical devices manufacturing, etc. These systems most often have a great impact on critical infrastructure or sensitive data processing. So their security is always a critical issue and sometimes may be extremely important. T
10 min read
MD5 hash in Python
Cryptographic hashes are used in day-day life like in digital signatures, message authentication codes, manipulation detection, fingerprints, checksums (message integrity check), hash tables, password storage and much more. They are also used in sending messages over network for security or storing messages in databases. There are many hash functio
2 min read
SHA-256 Hash in Java
Definition: In Cryptography, SHA is cryptographic hash function which takes input as 20 Bytes and rendered the hash value in hexadecimal number, 40 digits long approx.Message Digest Class: To calculate cryptographic hashing value in Java, MessageDigest Class is used, under the package java.security.MessagDigest Class provides following cryptographi
2 min read
Blockchain Hash Function
A hash function is a mathematical function that takes an input string of any length and converts it to a fixed-length output string. The fixed-length output is known as the hash value. To be cryptographically secure and useful, a hash function should have the following properties: Collision resistant: Give two messages m1 and m2, it is difficult to
5 min read
Full domain Hashing with variable Hash size in Python
A cryptographic hash function is a special class of hash function that has certain properties which make it suitable for use in cryptography. It is a mathematical algorithm that maps data of arbitrary size to a bit string of a fixed size (a hash function) which is designed to also be a one-way function, that is, a function which is infeasible to in
5 min read
A Cryptographic Introduction to Hashing and Hash Collisions
What is hashing?Hashing is the process of converting any kind of data (usually passwords or installer files) into a fixed-length string. There are multiple types of hashes, but for this article, we will look only at the MD5 hash. MD5 is an example of a hashing method. For example, the MD5 hash of "hello" (without the quotes) is "5d41402abc4b2a76b97
5 min read
Davies-Meyer Hash Function
Pre-requisites: Merkle-Damgard construction A Merkle-Damgard construction for collision-resistant hash functions required us to design a fixed-length, collision-resistant compression function (h) first. Now the question arises, how do we construct 'h', such that h:{0, 1}l+n -> {0, 1}n. There are two approaches: The first approach is based on num
1 min read
Passwords and Cryptographic hash function
We have introduced and discussed importance of hashed passwords. To create strong hashed passwords, we must understand some terminology related to it and then we will see how to create strong salted hash password by example in PHP. What is Cryptographic hash function? A cryptographic hash function is a special class of hash function that has certai
3 min read
What is the difference between a digest and a hash function?
Digest and Hash Functions are two important aspects of cryptography. In cryptography, we pass an input text from any algorithm that generates some secured text. Now that algorithm is called a hash function and that secured text is called a digest. From here we can conclude that in cryptography we pass original text from the hash function to generat
5 min read
How Does a Secure Hash Algorithm work in Cryptography?
Cryptography is very much essential and vital for data encryption and decryption to safeguard sensitive and touchy data in businesses and individual. However, with the advancement of technology data breaches and cyberattacks has become very common, and need to employ different types of cryptography tools to combat such issues and problems. Hashing
9 min read
What is HMAC(Hash based Message Authentication Code)?
HMAC (Hash-based Message Authentication Code) is a type of message authentication code (MAC) that is acquired by executing a cryptographic hash function on the data that is to be authenticated and a secret shared key. Like any of the MACs, it is used for both data integrity and authentication. What is HMAC?HMAC (Hash-Based Message Authentication Co
7 min read
Port Security in Computer Network
Attackers' task is comparatively very easy when they can enter the network they want to attack. Ethernet LANs are very much vulnerable to attack as the switch ports are open to use by default. Various attacks such as Dos attack at layer 2, address spoofing can take place. If the administrator has control over the network then obviously the network
3 min read
Risk Management for Information Security | Set-1
Prerequisite - Threat Modelling A risk is nothing but intersection of assets, threats and vulnerability. A+T+V = R NIST SP 800-30 Risk Management Guide for Information Technology Practitioners defines risk as a function of the likelihood of a given threat-source exercising a particular potential vulnerability, and the resulting impact of that adver
2 min read
Risk Management for Information Security | Set-2
Prerequisite - Risk Management | Set-1 2. Risk Assessment - Risk Management is a recurrent activity, on the other hand Risk assessment is executed at discrete points and until the performance of the next assessment. Risk Assessment is the process of evaluating known and postulated threats and vulnerabilities to determine expected loss. It also incl
7 min read
Basic configuration of Adaptive Security Appliance (ASA)
Prerequisite - Adaptive security appliance (ASA) Adaptive Security Appliance (ASA) is a Cisco security appliance that combines classic firewall features with VPN, Intrusion Prevention, and antivirus capabilities. It has the capability to provide threat defense before the attacks spread into the networks. As an administrator, we have to ensure prote
5 min read
TELNET and SSH on Adaptive Security Appliance (ASA)
Prerequisite - Adaptive security appliance (ASA) A user can take management access of a device through a console or remote access by using telnet or SSH. In the same way, ASA (Adaptive Security Appliance) CLI access can take through a console or by using Telnet or SSH and GUI access can be taken through (ASDM-a tool). 1. Telnet on ASA: Telnet is an
7 min read
Privacy and Security in online social media
Social media is not a new term for us. Our daily life is incomplete, or we can say we human beings survive on food, water, air and social media. We are dependent to such an extent that we tend to share every bit of information about us on social platform. But stop for a minute and think, Are we really secure? Do we have any Privacy? No, we are livi
7 min read
three90RightbarBannerImg