const express = require ( 'express' ); const router = express (); const user = require ( '../Models/clientProfile' ); const bodyParser = require ( 'body-parser' ); const jsonParser = bodyParser . json (); const jwt = require ( 'jsonwebtoken' ); /*const crypto=require('crypto'); const key='pass'; const algo='aes256';*/ const bcrypt = require ( 'bcrypt' ); //get api:-- router . get ( '/' ,( req , res , next ) => { res . send ( "hello api ji" ); }) router . post ( '/' , jsonParser , function ( req , res , next ){ /*const cipher=crypto.createCipher(algo,key); const encypass=cipher.update(req.body.password,'utf-8','hex') +cipher.final('hex'); console.log(encypass);*/ bcrypt . hash ( req . body . password , 10 , ( err , hash ) => { ...