How Do I compress a folder with password?

Sorry for the noob question.

I am able to create a zip file by right-clicking the folder. But gives no option to include a password. Is there an easy way to do this?

(I am trying to compress my Download folder)

you need to do it using the command line

zip -r --encrypt archive.zip Downloads

You should read that about zip encryption Are password-protected ZIP files secure? - Information Security Stack Exchange

4 Likes

Hi - I should have said 7z. I meant to say 7z but i meant zip in a generic sense.

How do I create the archive with the password?

With 7z, you can create an archive with a password using this

7z a archive.7z Downloads -p PASSWORD
1 Like

Thank you very much. You are very helpful.