func (u User) hashPassword() ([]byte, error) {
	hashedPassword, err := u.ph.Hash(u.password)
	if err != nil {
		return nil, fmt.Errorf("hashing password: %w", err)
	}
	return hashedPassword, nil
}
// hashPassword creates a byte hash of the password that should be secure.
hashPassword creates a byte hash of the password that should be secure.
// hashPassword creates a byte hash of the password that should be secure .
func (u User) hashPassword() ([]byte, error) {
	hashedPassword, err := u.ph.Hash(u.password)
	if err != nil {
		return nil, fmt.Errorf("hashing password: %w", err)
	}
	return hashedPassword, nil
}
func ( u User ) hashPassword ( ) ( [ ] byte , error ) { hashedPassword , err := u . ph . Hash ( u . password ) if err != nil { return nil , fmt . Errorf ( " " , err ) } return hashedPassword , nil }
hashPassword creates a byte hash of the password that should be secure.
hashPassword creates a byte hash of the password that should be secure .