Asked 7 years ago
30 Dec 2016
Views 1092
yogi

yogi posted

encrypt input value by Javascript / html

form where there's a bank account id or customer id and a password, and want to make encryption on the both field before send it to server ,
by encryption , i want to make little harder to hack it on the way of server.
so is there any way by javascript or html i can secure it before send it to server.
ravi

ravi
answered Nov 30 '-1 00:00

buy ssl certificate for your server . it will send encrypted data to network so it will add automatically security to your website.
jignesh

jignesh
answered Nov 30 '-1 00:00

bcrypt.js

bcrypt.js is good option to encrypt the password before sending to server

var bcrypt = require('bcryptjs');
var salt = bcrypt.genSaltSync(10);
var hash = bcrypt.hashSync("iampassword", salt);
Post Answer