// HashPass Generates a hash from a password and salt
HashPass Generates a hash from a password and salt
// HashPass Generates a hash from a password and salt
func HashPass(pass string, salt string) (string, error) {
	password := []byte(pass + salt)
	hash, err := bcrypt.GenerateFromPassword(password, bcryptDiff)
	if err != nil {
		return "", err
	}
	return string(hash), nil
}
func HashPass ( pass string , salt string ) ( string , error ) { password := [ ] byte ( pass + salt ) hash , err := bcrypt . GenerateFromPassword ( password , bcryptDiff ) if err != nil { return " " , err } return string ( hash ) , nil }
HashPass Generates a hash from a password and salt
HashPass Generates a hash from a password and salt