//Hash generates hash for the given password
Hash generates hash for the given password
// Hash generates hash for the given password
func Hash(password string) (string, error) {
	hashed, err := bcrypt.GenerateFromPassword([]byte(password), bcrypt.DefaultCost)
	if err != nil {
		return "", err
	}
	return string(hashed), nil
}
func Hash ( password string ) ( string , error ) { hashed , err := bcrypt . GenerateFromPassword ( [ ] byte ( password ) , bcrypt . DefaultCost ) if err != nil { return " " , err } return string ( hashed ) , nil }
Hash generates hash for the given password
Hash generates hash for the given password