An open API service indexing awesome lists of open source software.

https://github.com/aayushimmodi/api-hash-jwt

Create API for Register,Login and Display using hash and JWT Token
https://github.com/aayushimmodi/api-hash-jwt

bcrypt es6-javascript expressjs jwt nodejs restful-api

Last synced: 4 months ago
JSON representation

Create API for Register,Login and Display using hash and JWT Token

Awesome Lists containing this project

README

          

# api-hash-jwt
Create Login, Register and Display API using JWT and Hash password
#
### JWT (Json Web Token)
It is a stateless authentication mechanism i.e it maintains sessions in the
client-side itself instead of storing it in the server. used with authentication systems to make authenticated requests.
It consist of three parts — header, payload, and signature.
* npm i jsonwebtoken --save
* API is secure using JsonWebToekn
#
### Generate Hash Password using Bcrypt library
using Bcyrpt library to hash and compare password.to store encrypted data in database.
* npm i bcrypt --save
* const bcrypt = require('bcrypt');

#### Salt
* Salt Round means cost factor.
* salt is a random value, and should differ for each calculation, so the
result should hardly ever be the same, even for equal passwords