Not when creating new archive, but on existing archive. I would also like to know how to do that in other archiver.

up vote 56 down vote accepted

You can do it by using this method . Tools > Convert Archives > Compression > General > Set Password > then click ok and save . :)

  • 5
    Nice! Talk about a BURIED feature! – Matias Nino Jan 17 '13 at 13:31
  • 1
    Hahahahahahahaha.... what the ... :D – Shiki Dec 16 '13 at 2:03
  • I don't know if this was different in earlier versions, but I found the 'set password' button under 'general' not the 'advanced' tab. Still, you got me more than half the way there! – fadelm0 Dec 10 '16 at 15:41
  • Works great. Note that WinRAR 3.42 has another password option under File->Password (I don't know what this does). – sancho.s Jan 6 '17 at 8:06
  • This also works with .zip archives in WinRar :) Also remember to check 'delete original archives' so that you can replace the original with encrypted version. Otherwise, you must manually delete the unencrypted version. – Jon Grah Mar 3 '17 at 2:24

This is not possible as the password is generally used as the hash/similar for the file, so, anything that changes it will require an intensive operation to change all files.

The fastest and easiest thing by far is to extract all files and create a new archive with the security set.

Not saying it isn't possible to do what you want, but I haven't seen the option to do it.

  • I added file to archive and set password which casused everything to update. Now archive is password protected, but has unnecessary file. I removed it and archive remained protected. – Boris_yo May 27 '11 at 12:26
  • @Boris - Technically what you did was exactly what you DID NOT want to do. You actually did create a new archive it was just invisible to you. – Ramhound May 27 '11 at 15:38
  • 1
    Then where is the old archive? In temp directory? – Boris_yo May 30 '11 at 13:55

There is a better way of doing it. go to Options>Settings>Compression>Create Default>Set Password>Then click Ok and you're done! (At least it's easier to navigate.)

  • 1
    That is not the answer to the question; this just sets how archives are made 'from now on.' – Jan Doggen Sep 20 '14 at 11:50

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.