UNPKG

create-bar-project

Version:

This module helps create a base for web application projects.

9 lines (6 loc) 197 B
import bcrypt from 'bcrypt'; const cryptPassword = (password: string) => { const salt = bcrypt.genSaltSync(10); return bcrypt.hashSync(password, salt); }; export default cryptPassword;