0

I have the following code to hash a password in nodejs

await bcrypt.hash("my-password", 12)

I would like to hash the same way in shell using openssl passwd so it would be compatible with each-other. How is that possible?

Thanks

SexyMF
  • 10,657
  • 33
  • 102
  • 206
  • https://unix.stackexchange.com/a/419855/310433 & https://www.ask-sheldon.com/create-a-bcrypt-hash-on-commandline/ write a cli tool in node.js – Marc Sep 01 '21 at 08:54
  • Does this answer your question? [Best to use Private methods or Protected methods?](https://stackoverflow.com/questions/419844/best-to-use-private-methods-or-protected-methods) – Marc Sep 01 '21 at 08:54

0 Answers0