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
- Host: GitHub
- URL: https://github.com/aayushimmodi/api-hash-jwt
- Owner: Aayushimmodi
- Created: 2024-08-29T06:35:40.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-29T11:54:59.000Z (almost 2 years ago)
- Last Synced: 2025-11-11T21:33:06.127Z (8 months ago)
- Topics: bcrypt, es6-javascript, expressjs, jwt, nodejs, restful-api
- Language: JavaScript
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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