# Hashing password

**URL:** https://discourse.nodered.org/t/hashing-password/7876
**Category:** General
**Created:** [12 February 2019 13:00 UTC](https://discourse.nodered.org/t/hashing-password/7876 "2019-02-12T13:00:43Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Andres](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andres/32/112_2.png) [@Andres](https://discourse.nodered.org/u/Andres)
#### Post date: [12 February 2019 13:00 UTC](https://discourse.nodered.org/t/hashing-password/7876/1 "2019-02-12T13:00:43Z")

</div>

Hi, i was trying to generate some passwords for the node-red editor and when i ran the "node-red-admin hash-pw" command with some password i noticed that every time i ran it it throws different hashes for the same pw, is this correct?

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [12 February 2019 13:27 UTC](https://discourse.nodered.org/t/hashing-password/7876/2 "2019-02-12T13:27:17Z")

</div>

> [@Andres](#):
>
> different hashes for the same pw, is this correct?

Yes. It uses the BCrypt hashing algorithm - [bcrypt - Wikipedia](https://en.wikipedia.org/wiki/Bcrypt)

---

<div class="post-metadata">

### Author: ![Andres](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andres/32/112_2.png) [@Andres](https://discourse.nodered.org/u/Andres)
#### Post date: [13 February 2019 11:38 UTC](https://discourse.nodered.org/t/hashing-password/7876/3 "2019-02-13T11:38:06Z")

</div>

I didn't thought that that was possible, thanks for the answer and the enlightenment.

Greetings.

---

<div class="post-metadata">

### Author: ![MarcoPiscopia](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcopiscopia/32/6322_2.png) [@MarcoPiscopia](https://discourse.nodered.org/u/MarcoPiscopia)
#### Post date: [26 February 2019 06:29 UTC](https://discourse.nodered.org/t/hashing-password/7876/4 "2019-02-26T06:29:39Z")

</div>

Hi knolleary,  
I came into the same situation but for me different hashes don't work.  
I've also written here  
[https://discourse.nodered.org/t/node-red-authentication-pw-hash-issue/3472/7?u=marcopiscopia](https://discourse.nodered.org/t/node-red-authentication-pw-hash-issue/3472/7?u=marcopiscopia)  
Do you have any suggestion?  
Thanks  
Marco

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [26 February 2019 07:58 UTC](https://discourse.nodered.org/t/hashing-password/7876/5 "2019-02-26T07:58:56Z")

</div>

Please only comment on one thread for your issue. Now you have two threads which one do you want any replies to be added to?

---

<div class="post-metadata">

### Author: ![MarcoPiscopia](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcopiscopia/32/6322_2.png) [@MarcoPiscopia](https://discourse.nodered.org/u/MarcoPiscopia)
#### Post date: [26 February 2019 09:11 UTC](https://discourse.nodered.org/t/hashing-password/7876/6 "2019-02-26T09:11:12Z")

</div>

I'm sorry. I only noted similar topics and this is the reason why I posted link to the other. Of course one is enought. To answer to you, plese refer to other thread.
