For securing your credentials, a dedicated password manager is far superior to a password-protected compressed archive, and their security models are fundamentally different. When you open a password-protected archive, it creates an unencrypted, plaintext file that is highly vulnerable to being scraped by malware like info-stealers.
In contrast, a password manager handles everything internally. It decrypts the database directly in the application's memory and uses a secure clipboard that automatically clears itself after a short time, minimizing the window of opportunity for an attacker. This automation is key to avoiding human error, you'll never accidentally leave a vulnerable plaintext file on your system.
While a password manager is a powerful tool, it should be part of a multi-layered defense strategy. A password manager is designed to actively combat threats like keyloggers and info-stealers by making it extremely difficult to capture or steal your credentials, whereas an archive provides only a single layer of security.
To ensure your digital security is as robust as possible, you should also, Enable Multi-Factor Authentication (MFA) on all critical accounts, as this provides a second layer of defense even if your master password were to be compromised.
Keep your operating system and all software consistently updated to patch security vulnerabilities that malware can exploit.
Run reputable antivirus and anti-malware software to proactively detect and remove threats from your system.
Exercise extreme caution with emails, links, and downloads to prevent malware from gaining a foothold on your machine in the first place.