const bcrypt = require('bcrypt');
const saltRounds = 10; // 자릿수
const myPlaintextPassword = 's0/\/\P4$$w0rD';
const someOtherPlaintextPassword = 'not_bacon';
bcrypt.genSalt(saltRounds, function(err, salt) {
bcrypt.hash(myPlaintextPassword, salt, function(err, hash) {
// Store hash in your password DB.
});
});
postman send! password hash success!!!
에러때문에... 한참 헤멨다...