When you set a password in WinRAR (using the “Set password” option in the “Advanced” tab), the software does store the password inside the archive. Instead: