You've hit on a common point of confusion with WinRAR! The "Set default password" option in WinRAR's settings (usually under Options > Settings > Compression > Create default profile > Password...) does not apply a password to an existing file or automatically encrypt new files.
What "Set default password" does is simply pre-fill the password field when you go to create a new archive and click the "Set password..." button. It's a convenience feature, not an automatic encryption one.
How to Properly Password Protect a WinRAR Archive:
You need to set the password when you create the archive or re-archive an existing one.
Method 1: When Creating a NEW Password-Protected Archive
This is the most common scenario:
- Select the files/folders you want to compress and password-protect.
- Right-click on them.
- Select "Add to archive..." (or "Add files to archive..." if you selected multiple files).
- In the "Archive name and parameters" dialog box that appears:
- Make sure you're on the General tab.
- Look for the "Set password..." button (or "Password..." button, depending on your WinRAR version) usually located near the bottom right.
- Click the "Set password..." button.
- A new small window will pop up: "Enter password".
- Enter your desired password in both the "Enter password" and "Reenter password for verification" fields.
- Crucially, check the box for "Encrypt file names" if you want stronger security. Without this, someone could still see the names of the files inside the archive, even if they can't open the content.
- Click OK on the "Enter password" window.
- Click OK on the "Archive name and parameters" window to start the compression.
Now, your newly created .rar (or .zip) file will require the password to open and extract its contents.
Method 2: Adding a Password to an EXISTING WinRAR Archive
You generally cannot directly add a password to an already created, unencrypted archive without recreating it. You'll need to:
- Extract the contents of your existing, unencrypted WinRAR archive to a temporary folder.
- Once extracted, delete the original, unencrypted archive file.
- Now, follow Method 1 (above) using the extracted files/folders to create a new WinRAR archive, setting the password during that process.
Why "Set default password" didn't work:
You were simply telling WinRAR, "Hey, next time I manually click 'Set password...', please fill in this value for me." You weren't actually applying the password to the file you were working with.
Always set the password explicitly in the "Add to archive" dialog when you're creating or modifying an archive.