# What is Hash algorithm ?

**URL:** https://forum.kirupa.com/t/what-is-hash-algorithm/647708
**Category:** programming
**Created:** [May 24, 2021, 8:41am UTC](https://forum.kirupa.com/t/what-is-hash-algorithm/647708 "2021-05-24T08:41:49Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![GPMuthu](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/gpmuthu/32/14563_2.png) [@GPMuthu](https://forum.kirupa.com/u/GPMuthu)
#### Post date: [May 24, 2021, 8:41am UTC](https://forum.kirupa.com/t/what-is-hash-algorithm/647708/1 "2021-05-24T08:41:49Z")

</div>

Hi Nanbarkale,  
Could you please make some articles about the Hash algorithm with a detailed explanation?

Thanks and regards,  
GP Muthu

---

<div class="post-metadata">

### Author: ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)
#### Post date: [May 25, 2021, 6:00pm UTC](https://forum.kirupa.com/t/what-is-hash-algorithm/647708/2 "2021-05-25T18:00:17Z")

</div>

This is an interesting topic request. The challenge is that every programming language and implementation of it behind the scenes will use its own special way of creating a hashing algorithm. Can you be a bit more specific? 🙂

---

<div class="post-metadata">

### Author: ![GPMuthu](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/gpmuthu/32/14563_2.png) [@GPMuthu](https://forum.kirupa.com/u/GPMuthu)
#### Post date: [May 25, 2021, 6:31pm UTC](https://forum.kirupa.com/t/what-is-hash-algorithm/647708/3 "2021-05-25T18:31:58Z")

</div>

For example, When we create accounts in facebook or Twitter, they will not store our passwords in plain text format. They will do hashing with the help of SHA1,SHA216,SHA512 and SHA3 (Keccak) algorithms. Is this possible to implement the logics in our JavaScript forms ? If we have explanation with JavaScript means, will help us to understand behind the scenes of this algorithms.

---

<div class="post-metadata">

### Author: ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)
#### Post date: [May 25, 2021, 9:55pm UTC](https://forum.kirupa.com/t/what-is-hash-algorithm/647708/4 "2021-05-25T21:55:29Z")

</div>

Gotcha! My suggestion would be to look at how some of the popular JS implementations for hashing pull that off. Here is one: [GitHub - emn178/js-sha3: A simple SHA-3 / Keccak hash function for JavaScript supports UTF-8 encoding.](https://github.com/emn178/js-sha3)

---

<div class="post-metadata">

### Author: ![harshit676](https://avatars.discourse-cdn.com/v4/letter/h/8e7dd6/32.png) [@harshit676](https://forum.kirupa.com/u/harshit676)
#### Post date: [October 11, 2021, 7:05am UTC](https://forum.kirupa.com/t/what-is-hash-algorithm/647708/8 "2021-10-11T07:05:53Z")

</div>

> [@GPMuthu](#):
>
> articles about the Hash algorithm

Hashing algorithms are just as abundant as encryption algorithms, but there are a few that are used more often than others. Some common hashing algorithms include **MD5, SHA-1, SHA-2, NTLM, and LANMAN**. MD5: This is the fifth version of the Message Digest algorithm. MD5 creates 128-bit outputs.

---

<div class="post-metadata">

### Author: ![Brackwom](https://avatars.discourse-cdn.com/v4/letter/b/46a35a/32.png) [@Brackwom](https://forum.kirupa.com/u/Brackwom)
#### Post date: [October 19, 2021, 10:16am UTC](https://forum.kirupa.com/t/what-is-hash-algorithm/647708/9 "2021-10-19T10:16:43Z")

</div>

A hash algorithm is a function that converts a data string into a fixed-length numeric string output. In general, the output string is much shorter than the original data.
