If I wanted to write a program that generated all possible passwords using alphanumeric characters and wrote the output to a file, what language would would be best suited for writing something like that, for the purpose of penetration testing?
Edit: I already know C, C++, Java, javascript, python, ruby, HTML, CSS, and objective-c. I just have trouble identifying what language is better for solving which problems.