splitted the responsibility for checking and generating the brutefoced passwords with an function pointer