If you are talking about the password to protect the avast settings in avast anti-virus:
Then the short answer is to reinstall avast - read Reply #1 generally that is the only option.

None of the other replies offers any other way.