EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Free Courses
  • Certification Courses
  • 600+ Courses All in One Bundle
  • Login

SHA Algorithm

By Priya PedamkarPriya Pedamkar

Home » Software Development » Software Development Tutorials » Network Security Tutorial » SHA Algorithm

SHA Algorithm

Introduction to SHA Algorithm

SHA algorithm is Secure Hash algorithm developed by the National Institute of Standards and Technology along with NSA, previously released as a Federal Information Processing Standard, later in 1995, it was named as SHA algorithm, design to modify the MD4, in other words, we can say that the SHA algorithm is the modified version of MD4. SHA is designed to obtain the original message, given its message digest, and find the message producing the same message.

What is SHA Algorithm?

In the field of cryptography and crypt analytics, the SHA-1 algorithm is a crypt-formatted hash function that is used to take a smaller input and produces a string that is 160 bits, also known as 20-byte hash value long. The hash value therefore generated, is known as a message digest which is typically rendered and produced as a hexadecimal number which is specifically 40 digits long.

Start Your Free Software Development Course

Web development, programming languages, Software testing & others

Characteristics

  • The cryptographic hash functions are utilized and used to keep and store the secured form of data by providing three different kinds of characteristics such as pre-image resistance, which is also known as the first level of image resistance, the second level of pre-image resistance and collision resistance.
  • The cornerstone lies in the fact that the pre-image crypt resistance technique makes it hard and more time consuming for the hacker or the attacker to find the original intended message by providing the respective hash value.
  • The security, therefore, is provided by the nature of a one way that has a function that is mostly the key component of the SHA algorithm. The pre-image resistance is important to clear off brute force attacks from a set of huge and powerful machines.
  • Similarly, the second resistance technique is applied where the attacker has to go through a hard time decoding the next error message even when the first level of the message has been decrypted. The last and most difficult to crack is the collision resistance, making it extremely hard for the attacker to find two completely different messages which hash to the same hash value.
  • Therefore, the ratio to the number of inputs and the outputs should be similar in fashion to comply with the pigeonhole principle. The collision resistance implies that finding two different sets of inputs that hash to the same hash is extremely difficult and therefore marks its safety.

Types of SHA Algorithm

The Different Types of SHA algorithm include the ones:

Types of SHA Algorithm

1. SHA-0

It is a retronym that is applied to the basic version of the year-old 160 bit or 20-byte long hash function, which was published back in 1993 with the name of the SHA algorithm. It was withdrawn very shortly after it was published due to a major flaw, and therefore SHA-1 came into the picture.

2. SHA-1

It is a 160 bit or a 20-byte long hash-based function-based encryption mechanism that is used to resemble the year-old MD5 algorithm. The particular algorithm was designed and developed by the NSA, i.e. the National Security Agency and was supposed to be part of the critical component- Digital Signature Algorithm (DSA). The weaknesses related to the cryptographic techniques were found in SHA-1; the encryption standard was later on discarded and was not much put to use.

3. SHA-2

This forms a family of 2 identical hash functions, which consist of differently sized block sizes which are known to be SHA-512 and SHA-256, which differ mainly in the word size. The former consists of the word value range of 32 words, whereas the latter consists of the 64-bit word value. The truncated versions of these values include SHA-224, SHA-384 and SHA-512 and SHA-224 or SHA-256.

4. SHA-3

This is the encryption technique being used mainly today, which makes use of the hash function named Keccak. The length supported is the same as that of SHA-2. Still, the majority of the difference lies in the fact that this one is structurally different as it is based on a wide range of random function generation, which typically supports all random permutations and thereby allowing inputting or absorbing, as it is called, any amount of data presented and outputting or squeezing the presented data. While doing all this, this acts as a pseudorandom function for all the inputs provided, which therefore leads to greater flexibility.

Popular Course in this category
Ethical Hacking Training (9 Courses, 7+ Projects)9 Online Courses | 7 Hands-on Projects | 75+ Hours | Verifiable Certificate of Completion | Lifetime Access
4.5 (5,649 ratings)
Course Price

View Course

Related Courses
CDN Training (2 Courses)OSPF Training Program (2 Courses)Penetration Testing Training Program (2 Courses)

Uses of SHA Algorithm

These SHA algorithms are widely used in security protocols and applications, including the ones such as TLS, PGP, SSL, IPsec, and S/MiME. These also find their place in all the majority of cryptanalytic techniques and coding standards which is mainly aimed to see the functioning and working of majorly all governmental as well as private organizations and institutions. Major giants today such as Google, Microsoft, or Mozilla have started to recommend the use of SHA-3 and stop the usage of the SHA-1 algorithm.

Conclusion

The SHA or secured hash algorithm aims to provide an additional security level to the increasing and massive data you have to deal with. Hackers and attackers will keep finding a vulnerability in all the newer forms of hashing techniques being used. We just have to ensure that we are prompt enough to be more secure than letting our data fall prey to it. I hope you liked our article. Stay tuned for more articles like these.

Recommended Articles

This is a guide to SHA Algorithm. Here we discuss the characteristics, types, and uses of the SHA Algorithm in detail. You may also look at the following articles to learn more –

  1. Symmetric Algorithms
  2. MD5 Algorithm
  3. Clustering Algorithm
  4. C++ Algorithm

Ethical Hacking Training (9 Courses, 7+ Projects)

9 Online Courses

7 Hands-on Projects

75+ Hours

Verifiable Certificate of Completion

Lifetime Access

Learn More

0 Shares
Share
Tweet
Share
Primary Sidebar
Network Security Tutorial
  • Algorithm
    • IDEA Algorithm
    • MD5 Algorithm
    • Symmetric Algorithms
    • Diffie Hellman Key Exchange Algorithm
    • Digital Signature Algorithm
    • Encryption Algorithm
    • Advanced Encryption Standard
    • Asymmetric Encryption
    • ElGamal Encryption
    • HMAC
    • DES Algorithm
    • Brute Force Algorithm
    • SHA Algorithm
    • RSA Algorithm
    • What is Digital Certificate?
    • Certificate Revocation
    • RC5
  • Basics
    • Security Consultant Definition
    • Security Policies
    • What is Network Security
    • What is Data Security?
    • What is Cryptography
    • Cryptography Techniques
    • Cryptography Tools
    • Data Security Techniques and Privacy
    • Digital Signature Cryptography
    • Java Cryptography
    • Basics of Cybersecurity
    • What is Network Topology
    • Algorithms and Cryptography
    • HTTP Methods
    • Security Technologies
    • Security Architecture
    • Network Topologies
    • What is a Physical Address?
    • Logical Address
    • What is Storage Area Network?
    • Mobile Ad Hoc Network
    • What is Computer Networks?
    • Security Principles
    • What is Remote Access?
  • Protocols
    • What is TCP Protocol
    • What is TCP/IP
    • How do IP Addresses Work?
    • Routing Protocols Types
    • What is Telnet
    • What is TFTP
    • What is DHCP
    • What is SFTP
    • Address Resolution Protocol
    • Internet Control Message Protocol
    • Simple Mail Transfer Protocol
    • Internet Security Protocols
    • SMTP Protocol
    • Types of Networking Protocols
    • User Datagram Protocol
    • Data Link Layer
    • Data Link Layer Services
    • Network Layer
    • Transport Layer Protocols
    • What Is Networking Protocols
    • TFTP
    • What is ARP
    • Basic Fundamental Of Networking
    • What is IPv4
    • What is IPv6
    • CIFS Protocol
    • What is SMB?
    • What is EIGRP
    • What is LLDP?
  • Routing
    • What is Router
    • Types of Routers
    • Dynamic Routing
    • Routing Algorithms
    • Routing Protocol
    • What is Routing
    • What is Static Routing
    • Important Types of DNS Servers (Powerful)
  • Attacks
    • Types of Network Attacks
    • What is Trojan Horse Virus
    • What is DOS
    • Types of DOS Attacks
    • DDos Attack Mitigation
    • Ransomware Attack  
    • Types of Cyber Attack
    • What is a Brute Force Attack
    • What is a Phishing Attack
    • What is Cyber Attack
    • What is DDoS Attack
    • What is Man In The Middle Attack
    • What is Man In The Middle Attack
    • What is Ransomware
    • What is Pharming
    • What is Phishing
    • What is CSRF
    • DNS Amplification Attack
    • Denial of Service Attack
  • Encryption/ Decryption
    • Encryption process
    • Public Key Encryption
    • Symmetric Key Encryption
    • What is Encryption
    • What is Decryption
    • Types of Cipher
    • Transposition Techniques
    • What is Steganography
    • One Time Pad
    • Steganography Techniques
  • Hosting
    • Types of Web Hosting
    • Free Web Hosting Sites
    • What is Hosting
    • What is VPS Hosting
    • What is Web Hosting
    • Types of Domain
    • VPN Applications for PC
    • Why we use VPN?
    • What is Virtual Host?
  • Firewalls
    • What is a Firewall?
    • Types of Firewalls
    • Firewall Devices
    • Firewall Uses
  • Advanced
    • Cryptosystems
    • Configuring DHCP Server
    • Block Cipher modes of Operation
    • TCP/IP Model
    • Types of Network
    • Types of Network Devices
    • Types of Network Topology
    • Types of Intrusion Prevention System
    • Types of Proxy Servers
    • Types of Websites
    • Types of NAT 
    • Mobile IP
    • Career in Automobile Design
    • What is TFS
    • What is NAT
    • What is OSI Model
    • Data Link Layer OSI Model
    • What is Cross Site Scripting
    • Applications of Sensors
    • ARP Packet Format
    • Asymmetric Information
    • Autoencoders
    • What is FTP Server?
    • IPS Tools
    • IPv4 Header Format
    • IPv6 Header Format
    • Authentication Header
    • Kerberos
    • Network Mapper
    • Network Scanning Tools
    • Network Mapping Tools
    • Network Access Control
    • Vulnerability Assessment Tools
    • Network Sniffer
    • Networking Commands
    • Networking Devices
    • Networking Strategies
    • Digital Certificate
    • What is a Digital Signature?
    • Digital Signature Softwares
    • Digital Signature Types
    • Digital Signature vs Digital Certificate
    • PKCS
    • What is FTP
    • FTP Commands
    • What is MIME?
    • What is Smart Card?
    • Networking Ports
    • Mutual Authentication
    • Password Authentication
    • Data Masking 
    • Authentication Tokens
    • Biometric Authentication
    • What is IP?
    • IPSec
    • Secure Electronic Transaction
    • What is CIDR
    • Static Binding and Dynamic Binding
    • What is SSL
    • PKIX
    • Public Key Infrastructure
    • What is Wireshark
    • Daisy Chain Topology
    • Markov Logic Network
    • Security engineering
    • SNMP Monitoring Tools
    • Network Analysis Tools
    • Server Monitoring Tools
    • Network Discovery Tools
    • Network Management Tool
    • SIEM Tools
    • OSINT Tools
    • Multiple Ping Tool
  • Interview Questions
    • Network Security Interview Questions
    • Networking Interview Questions
    • EIGRP Interview Questions

Related Courses

CDN Training

OSPF Certification Training

Penetration Training Course

Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Java Tutorials
  • Python Tutorials
  • All Tutorials
Certification Courses
  • All Courses
  • Software Development Course - All in One Bundle
  • Become a Python Developer
  • Java Course
  • Become a Selenium Automation Tester
  • Become an IoT Developer
  • ASP.NET Course
  • VB.NET Course
  • PHP Course

© 2020 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA Login

Forgot Password?

EDUCBA
Free Software Development Course

Web development, programming languages, Software testing & others

*Please provide your correct email id. Login details for this Free course will be emailed to you
Book Your One Instructor : One Learner Free Class

Let’s Get Started

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA
Free Software Development Course

Web development, programming languages, Software testing & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

Special Offer - Ethical Hacking Training (9 Courses, 7+ Projects) Learn More