Deprecated.
Generates a random password string of a specified length. The generated password contains only capital letters and numbers.