zipcloak myarchive.zip -O encrypted.zipĮncrypt the contents of archive myarchive.zip, but write the encrypted archive to a new file, encrypted.zip, and leave myarchive.zip unencrypted. The zipcloak command prompts you to enter a password, then ask you to confirm it if they match, it will encrypt the file so that it cannot be decrypted without that password. Operate quietly, suppressing some informational messages.Įncrypt the myarchive.zip file. Write output to new archive newfile, leaving original archive as is.
Use the directory given by path for the temporary zip file.ĭecrypt encrypted entries (copy if given wrong password).ĭisplay software licensing information, and exit.
Please note that archives larger than 2 gigabytes are not supported by zipcloak. See the file README.CR included in the source distribution for more information.) Otherwise, the Info-ZIP license applies. (Previously, if this program was imported into the U.S., it could not be re-exported from the U.S. It was originally written in Europe and can be freely distributed from any country including the United States.
The encryption code of this program is not copyrighted and is in the public domain. Zipcloak uses original zip encryption, which is considered weak in comparison to modern algorithms. The -d option is used to decrypt encrypted entries in the zipfile. Zipcloak encrypts all unencrypted entries in the specified zipfile, which is the default action. and zipcloak will operate as usual, except that instead of encrypting the original archive, it creates a new, encrypted version of the archive named encrypted.zip. Run this command: zipcloak archive.zip -O encrypted.zip You could use zipcloak's -O option to accomplish this. Let's say your original, unencrypted archive is named archive.zip, and you want to create an encrypted version of the archive called encrypted.zip, leaving the original file unchanged. You also have the option of leaving the original archive unencrypted, and creating a new encrypted version of the archive instead. Outputting the encrypted archive to a new file and if you enter it correctly, zipcloak removes the encryption from the files in the archive: decrypting: file1
Zipcloak will then ask you for the password that was used to encrypt the zipfile: Enter password: Later, if you want to remove the encryption from the zipfile, you can use the -d option of zipcloak, like this: zipcloak -d archive.zip
and now, when you try to unzip the archive, it prompts you for the password before allowing you to extract the files it contains: unzip archive.zip Archive: archive.zipĪlthough it asks for " file1 password", you only need to enter the password once to decrypt and extract all of the files in the archive. if the passwords match, it encrypts each file in the archive: encrypting: file1 Zipcloak prompts you for a password, and then ask you to confirm it: Enter password: You can do this with zipcloak using the following command: zipcloak archive.zip
Let's say you have a zipfile archive.zip which contains two files, file1 and file2, and you'd like to encrypt its contents so that only users who know the password can extract its contents.