# Node Red Authentication PW Hash issue

**URL:** https://discourse.nodered.org/t/node-red-authentication-pw-hash-issue/3472
**Category:** General
**Created:** [26 September 2018 19:27 UTC](https://discourse.nodered.org/t/node-red-authentication-pw-hash-issue/3472 "2018-09-26T19:27:36Z")
**Posts on this page:** 1
**Showing post:** 7

<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:18 UTC](https://discourse.nodered.org/t/node-red-authentication-pw-hash-issue/3472/7 "2019-02-26T06:18:39Z")

</div>

Dears I'm new in the forum and I came across this post. Actually what described has happened to me too. What I tryed more is to run more times for the same password: with my surprise, every time hash -pw generates a different hash. There's no way to change this even if node-red is stopped. ![Cattura](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/4/4b37e7077c0a696c735ad6c4927a2bbfd19e19c8.jpeg)  
Any suggestion?  
When I try node -e "console.log(require('bcryptjs').hashSync(process.argv[1], 8));" your-password-here I got this  
`module.js:549  
throw err;  
^

Error: Cannot find module 'bcryptjs'  
at Function.Module.\_resolveFilename (module.js:547:15)  
at Function.Module.\_load (module.js:474:25)  
at Module.require (module.js:596:17)  
at require (internal/module.js:11:18)  
at [eval]:1:13  
at ContextifyScript.Script.runInThisContext (vm.js:50:33)  
at Object.runInThisContext (vm.js:139:38)  
at Object. ([eval]-wrapper:6:22)  
at Module.\_compile (module.js:652:30)  
at evalScript (bootstrap\_node.js:463:27)  
`  
Thanks in advance

---

_[View the full topic](https://discourse.nodered.org/t/node-red-authentication-pw-hash-issue/3472)._
