You can buy a legitimate 1-year license key from authorized retailers like Avast Account:

) are often blacklisted quickly by Avast, leading to immediate deactivation. Safe and Legal Ways to Activate