import * as bcrypt from 'bcrypt' ; export class Utils { param { Number } min param { Number } max return { Number } public static getRandomInt ( min , max ) { return Math . floor ( Math . random ( ) * ( max - min + 1 ) ) + min ; } public static encryptPassword ( password ) { const salt = bcrypt . genSaltSync ( 10 ) ; return bcrypt . hashSync ( password , salt ) ; } }