Some improvements.

Program accepts bit length instead of password length as first argument.
Program accepts exact characters instead of hex flag as second argument.