class AuthenticationUtil {

    public static String encryptPassword(String userId, String password) {
        PasswordEncryptor passwordEncryptor = SystemRepository.get(PASSWORD_ENCRYPTOR);
        return passwordEncryptor.encrypt(userId, password);
    }

    private  AuthenticationUtil();

}