Be careful with this. The "encryption" offered by compression tools like 7-Zip and WinRAR is weak and easily broken. 😬
A safer way to do this that I highly recommend is to use 1Password. In addition to being a really great password manager, 1Password will also let you store the details of your credit cards, passport, driver's license, etc. And it uses strong encryption so your secrets are safe as long as you choose a good master passphrase.