Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1.04 KB

README.md

File metadata and controls

36 lines (28 loc) · 1.04 KB

Password Hashing in NodeJS using Bcrypt

Prerequisites

  1. Basic Understanding of Node and JavaScript.
  2. Node and NPM installed.

How to Start

  1. Clone the repo.
  2. Run npm install
  3. Run node server.js
  4. Server will be running at locahost:5000

Config Files

A config.json file must be created before the starting the server. A sample config.json is shown below:

{
  "dbURI": "localhost:27017",
  "database": "amd-r",
  "port": 5000
}

Note: a new config entry called "jwtSecret" will be generated in the first run of the program. This is a secret used for hasing the passwords. Do not generate your own unless you know what you are doing as the secret should be cryptographically secure.

TODO

  • Organize server requests (Moving API into it's own folder)
  • Make AMD-R verification using RSA signing
  • Write jsdocs
  • Add feature to disable registration for AMD-R/users
  • User Authentication without JS
  • /api/amd-r/getData using get
  • MFA for users
  • Add new "staff" role