Difference between bcryptjs and passportjs

What is the difference between these two npm packages: bcryptjs and passportjs.
passportjs also let us bcrypt our passwords than why we need to bcrypt our passwords using bcryptjs package?

bcrypt is a password hashing algorithm: you give the function that runs it a password + some other parameters and it creates a extremely secure hashed version.

Passport is an authentication library for NodeJS; it’s not even remotely similar. If you want to use bcrypt for password hashing, it will either have the bcrypt package as a dependency or will require you to install it.

Passport is a library to help you implement authorisation in a NodeJS app. The node bcrypt library provides a function to hash a string (which will be a password), it doesn’t have any scope beyond that.

Had the same question. :ok_hand:t6: