{"id":847,"date":"2019-11-26T19:17:40","date_gmt":"2019-11-26T19:17:40","guid":{"rendered":"https:\/\/cheapsslsecurity.com\/p\/?p=847"},"modified":"2021-09-22T10:25:07","modified_gmt":"2021-09-22T10:25:07","slug":"sha1-vs-sha2-the-technical-difference-explained-by-ssl-experts","status":"publish","type":"post","link":"https:\/\/cheapsslsecurity.com\/p\/sha1-vs-sha2-the-technical-difference-explained-by-ssl-experts\/","title":{"rendered":"SHA1 vs SHA2 \u2014 The Technical Difference Explained by SSL Experts"},"content":{"rendered":"<p>Let\u2019s talk about SHA1 vs SHA2 \u2014 or SHA-1 vs SHA-2, as you may more frequently see them written.<\/p>\n<p>For some of you, when you hear \u201cSHA,\u201d you may think of the dark, <a href=\"https:\/\/wow.gamepedia.com\/Sha\" target=\"_blank\" rel=\"noopener noreferrer\">physical manifestations of negative emotions<\/a> from a popular online game (World of Warcraft). For others who aren\u2019t major MMORPG players, you likely think of SHA-1 and SHA-2 hash algorithms.<\/p>\n<p><!--more--><\/p>\n<p>Technically, both are right. But the SHA we\u2019re going to be talking about is the one relating to hashing.<\/p>\n<h2>What is a SHA and What Does It Have to Do with Hashing?<\/h2>\n<p>In a word? Everything. SHA stands for \u201csecure hashing algorithm.\u201d A <a href=\"https:\/\/cheapsslsecurity.com\/blog\/decoded-examples-of-how-hashing-algorithms-work\/\">hashing algorithm<\/a> is a mathematical function that takes data and condenses it down to a brief series of numbers and\/or letters. Unlike encryption, which can be decrypted from cyphertext back to its original text, a hash is a one-way cryptographic function.<\/p>\n<h3>The Difference Between SHA1 and SHA2\u00a0Certificates<\/h3>\n<p>So, when we talk about signing algorithm SHA 1 or SHA 2, what\u2019s the difference between them and which is better? Basically, SHA-1 and SHA-2 are two different variations of the SHA algorithm, and both were created by the U.S. government. And, as you can likely guess, SHA-2 is the newer of the two algorithms.<\/p>\n<p>Yeah, the \u201c1\u201d and the \u201c2\u201d in the names kind of gives those points away, right?<\/p>\n<p>Anyhow, although they\u2019re two variations of the same algorithm, they do have some technical differences worth mentioning, though.<\/p>\n<h2>Breaking Down the Values: SHA1 vs SHA2<\/h2>\n<p>SHA-1 is a 160-bit (20 byte) hash that is represented by a 40-digit hexadecimal string of numbers. <a href=\"https:\/\/cheapsslsecurity.com\/blog\/what-is-sha2-and-what-are-sha-2-ssl-certificates\/\">SHA-2<\/a>, on the other hand, is a family of six different hash functions that generate hash values of varying lengths \u2014 224, 256, 384, or 512 bits. However, it\u2019s important to note that these other hash functions are not as frequently seen as the 256-bit. For example, the 224-bit variety isn\u2019t strong enough for publicly trusted SSL certificates, and its big brother, the 512-bit variation isn\u2019t widely supported by software.\u00a0The most popular SHA2 algorithm is SHA256.<\/p>\n<p>It\u2019s like the example of the three little bears: SHA-224 is baby bear, and SHA-512 is papa bear. The first is too small and the latter is too large.<\/p>\n<p>Mama bear, SHA-256? She\u2019s just right. Yeah, moving on.<\/p>\n<p>The basic difference between SHA1 and SHA512 is the length of hash values generated by both algorithms \u2013 SHA1 has a 160-bit hash value while SHA512 has a 512-bit hash value. Therefore, making SHA512 a much more secure algorithm.<\/p>\n<p>SHA-2 is what you\u2019re going to find with all end user SSL\/TLS certificates. However, you\u2019ll see in some cases that some intermediate certificates may still use SHA-1. However, this is not an exploitable vulnerable so CAs are switching intermediates to SHA-2 as the SHA-1 certificates expire.<\/p>\n<p>Unlike SHA-1, SHA-2 has not been compromised and likely will remain so for at least the next few years.<\/p>\n<p>Let\u2019s finish up with a side-by-side comparison of SHA1 vs SHA2:<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"216\"><\/td>\n<td width=\"193\"><strong>SHA-1<\/strong><\/td>\n<td width=\"215\"><strong>SHA-2<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"216\"><strong>Years During Which the Algorithm Was Considered the Industry Standard<\/strong><\/td>\n<td width=\"193\">2011-2015<\/td>\n<td width=\"215\">Since 2016<\/td>\n<\/tr>\n<tr>\n<td width=\"216\"><strong>Other Names<\/strong><\/td>\n<td width=\"193\">N\/A<\/td>\n<td width=\"215\">SHA-256, SHA-256 Bit<\/td>\n<\/tr>\n<tr>\n<td width=\"216\"><strong>How Many Possible Hashing Combinations Does It Have?<\/strong><\/td>\n<td width=\"193\">2<sup>160<\/sup><\/td>\n<td width=\"215\">2<sup>256<\/sup> Possible Combinations<\/td>\n<\/tr>\n<tr>\n<td width=\"216\"><strong>Single Hash or Family of Algorithms Hash Values<\/strong><\/td>\n<td width=\"193\">Single Hash: 160-bit<\/td>\n<td width=\"215\">Family of Hash Functions \u2014224, 256, 384, and 512<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<div class=\"graysection\">\n<h2>Purchase a DV SSL Certificate &amp; Save Up to 88%!<\/h2>\n<p>We offer the best discount on all types of Domain Validation SSL Certificates (DV SSL). We offer certificates from the leading CAs, including Comodo CA, Sectigo, Thawte, GeoTrust, and RapidSSL with DV certificates starting as low as $5.45 per year.<\/p>\n<p><a class=\"comparebtn\" href=\"https:\/\/cheapsslsecurity.com\/sslproducts\/domainvalidatedssl.html\">Shop DV SSL Certificates<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Let\u2019s talk about SHA1 vs SHA2 \u2014 or SHA-1 vs SHA-2, as you may more frequently see them written. For some of you, when you hear \u201cSHA,\u201d you may think of the dark, physical manifestations of negative emotions from a &hellip; <a href=\"https:\/\/cheapsslsecurity.com\/p\/sha1-vs-sha2-the-technical-difference-explained-by-ssl-experts\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[72,73],"class_list":["post-847","post","type-post","status-publish","format-standard","hentry","category-ssl-advanced","tag-hashing-algorithm","tag-sha"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SHA1 vs SHA2 \u2014 The Technical Difference Explained by SSL Experts - Cheap SSL Security<\/title>\n<meta name=\"description\" content=\"SHA, or a secure hashing algorithm, comes in different flavors (SHA1 &amp; SHA2). SHA-2 is newer, but let&#039;s talk about the differences between SHA1 vs SHA2.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cheapsslsecurity.com\/p\/sha1-vs-sha2-the-technical-difference-explained-by-ssl-experts\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SHA1 vs SHA2 \u2014 The Technical Difference Explained by SSL Experts - Cheap SSL Security\" \/>\n<meta property=\"og:description\" content=\"SHA, or a secure hashing algorithm, comes in different flavors (SHA1 &amp; SHA2). SHA-2 is newer, but let&#039;s talk about the differences between SHA1 vs SHA2.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cheapsslsecurity.com\/p\/sha1-vs-sha2-the-technical-difference-explained-by-ssl-experts\/\" \/>\n<meta property=\"og:site_name\" content=\"Cheap SSL Security\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/CheapSSLSecurities\" \/>\n<meta property=\"article:published_time\" content=\"2019-11-26T19:17:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-22T10:25:07+00:00\" \/>\n<meta name=\"author\" content=\"casey.crane\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@sslsecurity\" \/>\n<meta name=\"twitter:site\" content=\"@sslsecurity\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"casey.crane\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/sha1-vs-sha2-the-technical-difference-explained-by-ssl-experts\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/sha1-vs-sha2-the-technical-difference-explained-by-ssl-experts\\\/\"},\"author\":{\"name\":\"casey.crane\",\"@id\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/#\\\/schema\\\/person\\\/d9c1744bb0931c1942814061a5aca108\"},\"headline\":\"SHA1 vs SHA2 \u2014 The Technical Difference Explained by SSL Experts\",\"datePublished\":\"2019-11-26T19:17:40+00:00\",\"dateModified\":\"2021-09-22T10:25:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/sha1-vs-sha2-the-technical-difference-explained-by-ssl-experts\\\/\"},\"wordCount\":610,\"keywords\":[\"hashing algorithm\",\"sha\"],\"articleSection\":[\"SSL Advanced\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/sha1-vs-sha2-the-technical-difference-explained-by-ssl-experts\\\/\",\"url\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/sha1-vs-sha2-the-technical-difference-explained-by-ssl-experts\\\/\",\"name\":\"SHA1 vs SHA2 \u2014 The Technical Difference Explained by SSL Experts - Cheap SSL Security\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/#website\"},\"datePublished\":\"2019-11-26T19:17:40+00:00\",\"dateModified\":\"2021-09-22T10:25:07+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/#\\\/schema\\\/person\\\/d9c1744bb0931c1942814061a5aca108\"},\"description\":\"SHA, or a secure hashing algorithm, comes in different flavors (SHA1 & SHA2). SHA-2 is newer, but let's talk about the differences between SHA1 vs SHA2.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/sha1-vs-sha2-the-technical-difference-explained-by-ssl-experts\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/sha1-vs-sha2-the-technical-difference-explained-by-ssl-experts\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/sha1-vs-sha2-the-technical-difference-explained-by-ssl-experts\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"SSL Help\",\"item\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SSL Advanced\",\"item\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/ssl-advanced\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"SHA1 vs SHA2 \u2014 The Technical Difference Explained by SSL Experts\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/#website\",\"url\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/\",\"name\":\"Cheap SSL Security\",\"description\":\"Shop for SSL Certificates at Cheap Prices\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/cheapsslsecurity.com\\\/p\\\/#\\\/schema\\\/person\\\/d9c1744bb0931c1942814061a5aca108\",\"name\":\"casey.crane\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c18d819d34a1995e91a4aa7518e9048df7856f336a1ede2262a572db7b1c2506?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c18d819d34a1995e91a4aa7518e9048df7856f336a1ede2262a572db7b1c2506?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c18d819d34a1995e91a4aa7518e9048df7856f336a1ede2262a572db7b1c2506?s=96&d=mm&r=g\",\"caption\":\"casey.crane\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SHA1 vs SHA2 \u2014 The Technical Difference Explained by SSL Experts - Cheap SSL Security","description":"SHA, or a secure hashing algorithm, comes in different flavors (SHA1 & SHA2). SHA-2 is newer, but let's talk about the differences between SHA1 vs SHA2.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cheapsslsecurity.com\/p\/sha1-vs-sha2-the-technical-difference-explained-by-ssl-experts\/","og_locale":"en_US","og_type":"article","og_title":"SHA1 vs SHA2 \u2014 The Technical Difference Explained by SSL Experts - Cheap SSL Security","og_description":"SHA, or a secure hashing algorithm, comes in different flavors (SHA1 & SHA2). SHA-2 is newer, but let's talk about the differences between SHA1 vs SHA2.","og_url":"https:\/\/cheapsslsecurity.com\/p\/sha1-vs-sha2-the-technical-difference-explained-by-ssl-experts\/","og_site_name":"Cheap SSL Security","article_publisher":"https:\/\/www.facebook.com\/CheapSSLSecurities","article_published_time":"2019-11-26T19:17:40+00:00","article_modified_time":"2021-09-22T10:25:07+00:00","author":"casey.crane","twitter_card":"summary_large_image","twitter_creator":"@sslsecurity","twitter_site":"@sslsecurity","twitter_misc":{"Written by":"casey.crane","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cheapsslsecurity.com\/p\/sha1-vs-sha2-the-technical-difference-explained-by-ssl-experts\/#article","isPartOf":{"@id":"https:\/\/cheapsslsecurity.com\/p\/sha1-vs-sha2-the-technical-difference-explained-by-ssl-experts\/"},"author":{"name":"casey.crane","@id":"https:\/\/cheapsslsecurity.com\/p\/#\/schema\/person\/d9c1744bb0931c1942814061a5aca108"},"headline":"SHA1 vs SHA2 \u2014 The Technical Difference Explained by SSL Experts","datePublished":"2019-11-26T19:17:40+00:00","dateModified":"2021-09-22T10:25:07+00:00","mainEntityOfPage":{"@id":"https:\/\/cheapsslsecurity.com\/p\/sha1-vs-sha2-the-technical-difference-explained-by-ssl-experts\/"},"wordCount":610,"keywords":["hashing algorithm","sha"],"articleSection":["SSL Advanced"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/cheapsslsecurity.com\/p\/sha1-vs-sha2-the-technical-difference-explained-by-ssl-experts\/","url":"https:\/\/cheapsslsecurity.com\/p\/sha1-vs-sha2-the-technical-difference-explained-by-ssl-experts\/","name":"SHA1 vs SHA2 \u2014 The Technical Difference Explained by SSL Experts - Cheap SSL Security","isPartOf":{"@id":"https:\/\/cheapsslsecurity.com\/p\/#website"},"datePublished":"2019-11-26T19:17:40+00:00","dateModified":"2021-09-22T10:25:07+00:00","author":{"@id":"https:\/\/cheapsslsecurity.com\/p\/#\/schema\/person\/d9c1744bb0931c1942814061a5aca108"},"description":"SHA, or a secure hashing algorithm, comes in different flavors (SHA1 & SHA2). SHA-2 is newer, but let's talk about the differences between SHA1 vs SHA2.","breadcrumb":{"@id":"https:\/\/cheapsslsecurity.com\/p\/sha1-vs-sha2-the-technical-difference-explained-by-ssl-experts\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cheapsslsecurity.com\/p\/sha1-vs-sha2-the-technical-difference-explained-by-ssl-experts\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cheapsslsecurity.com\/p\/sha1-vs-sha2-the-technical-difference-explained-by-ssl-experts\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"SSL Help","item":"https:\/\/cheapsslsecurity.com\/p\/"},{"@type":"ListItem","position":2,"name":"SSL Advanced","item":"https:\/\/cheapsslsecurity.com\/p\/ssl-advanced\/"},{"@type":"ListItem","position":3,"name":"SHA1 vs SHA2 \u2014 The Technical Difference Explained by SSL Experts"}]},{"@type":"WebSite","@id":"https:\/\/cheapsslsecurity.com\/p\/#website","url":"https:\/\/cheapsslsecurity.com\/p\/","name":"Cheap SSL Security","description":"Shop for SSL Certificates at Cheap Prices","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cheapsslsecurity.com\/p\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/cheapsslsecurity.com\/p\/#\/schema\/person\/d9c1744bb0931c1942814061a5aca108","name":"casey.crane","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c18d819d34a1995e91a4aa7518e9048df7856f336a1ede2262a572db7b1c2506?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c18d819d34a1995e91a4aa7518e9048df7856f336a1ede2262a572db7b1c2506?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c18d819d34a1995e91a4aa7518e9048df7856f336a1ede2262a572db7b1c2506?s=96&d=mm&r=g","caption":"casey.crane"}}]}},"_links":{"self":[{"href":"https:\/\/cheapsslsecurity.com\/p\/wp-json\/wp\/v2\/posts\/847","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cheapsslsecurity.com\/p\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cheapsslsecurity.com\/p\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cheapsslsecurity.com\/p\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/cheapsslsecurity.com\/p\/wp-json\/wp\/v2\/comments?post=847"}],"version-history":[{"count":0,"href":"https:\/\/cheapsslsecurity.com\/p\/wp-json\/wp\/v2\/posts\/847\/revisions"}],"wp:attachment":[{"href":"https:\/\/cheapsslsecurity.com\/p\/wp-json\/wp\/v2\/media?parent=847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cheapsslsecurity.com\/p\/wp-json\/wp\/v2\/categories?post=847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cheapsslsecurity.com\/p\/wp-json\/wp\/v2\/tags?post=847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}