Chapter 4. Build a Secure Local Password Manager
This chapter covers the following:
-
Data hashing concepts
-
Working with Bcrypt
-
Saving data to a MongoDB collection
Building applications on the server provides immediate benefits over building on the client. One of those benefits is enhanced control over data security.
The server engineer is typically responsible for protecting data in the database, determining what data the client can view, and who can see it. For this reason, there are a multitude of hashing packages on the npm registry to use with Node to hide sensitive data from everyone other than the data’s original owner.
Note
Although it is commonly expanded as “Node Package Manager,” npm is not officially an acronym. The creators of npm have stated that it originally stood for “npm is not an acronym.”
In this chapter, you will build a password manager using the bcrypt hashing package and mongodb for persistent storage. You’ll start by understanding what happens under the hood with hashing and how you can use this mechanism to build an effective productivity tool. Later, you’ll introduce document storage with MongoDB to keep your hashed data for future access.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access