Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

password-hashing

A short project dedicated to learning about password hashing, salts, and asynchronous events. Made with Node.js and bcrypt

password hashing example

Table of contents

Features

  • Easily change the two passwords to be compared and the number of salt rounds
  • Displays and compares the two hashes as well as the salt

Future Features

  • Add visual interface through html

What I Learned

  • await can be used to handle asynchronous password hashing, which is preferable because password hashing is an intensive task
  • await only pauses execution (and waits for the Promise to resolve) for the next line in the function block
  • If code is dependent on the Promise resolving (in this case, the hash being calculated), it should be placed in the same block as the await statement
  • Otherwise, the event loop will continue executing synchronous functions while the Promise resolves

Technologies

Project is created with:

  • node.js
  • bcrypt.js

Special Thanks

  • Thank you to heynode.com for providing such a stellar bcrypt tutorial
  • Link to Tutorial

About

A short project dedicated to learning about password hashing, salts, and asynchronous events. Made from scratch with Node.js and bcrypt

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors

Languages