public void encodePassword(User user) {
		if (StringUtils.isNotBlank(user.getPassword())) {
			String encodePassword = passwordEncoder.encode(user.getUserId(), user.getPassword());
			user.setPassword(encodePassword);
		}
	}
Encoding given user's password.

@param user user
ngrinder-controller/src/main/java/org/ngrinder/user/service/UserService.java