# Password-protected SAC archives ## Create and open Choose files and **Add**, enable **Protect with password** and enter the password twice. Revealing it is optional and starts disabled. Use a long, distinct password, preferably retained in a password manager. Spaces and case are significant. Both compressed contents and the index/file names are encrypted. The external `.sac` file name and size remain visible. Quick compression uses no password; choose **Add to archive…** to set protection. SAC asks for the password before listing, verifying, extracting, updating or dragging from a protected archive. A verified password is remembered only for the application session. Cancelling a prompt does not start extraction. Updates preserve encryption and reuse compressed data. Temporary archive files are encrypted, but extracted files and the drag cache are ordinary readable files. See [privacy](PRIVACY.md). Protected archives require SAC 0.10 or later. Older unprotected archives remain readable. To protect an old archive, extract it and create a new protected one. There is no dedicated password change/removal command in this edition. There is no password recovery, universal password or online unlock service. The author cannot recover contents if the password is lost. A password error can also indicate damage: retain the original and verify a copy. ## Command line `--password` prompts without echo and asks for confirmation during creation. Never put the password after this option; it is not accepted as a command argument. ```text sac c protected.sac documents --profile balanced --password sac l protected.sac sac t protected.sac sac x protected.sac extracted ``` For automation use `--password-env VARIABLE_NAME` after paths/options. SAC reads the environment variable without printing it. Set it through your secret management system and remove it after use. Environment variables are not a secure vault and can be inherited by child processes. Redirected input without available credentials causes an error. Protection uses AES-256-GCM through .NET, PBKDF2-HMAC-SHA256 with 600,000 iterations and a random salt per archive. Segments and the header are authenticated. Working memory is bounded by segments; no complete decrypted archive is written to disk.