Posts

Showing posts with the label Rar

Can I Remove A RAR File's (known) Password Without Recompressing The Archive?

Answer : Out of the box, no, you can not. Version 3 of the RAR file format (implemented first in WinRAR 2.9) encrypts the actual data itself, as well as the file headers (if requested) using AES-128 encryption. With just WinRAR, it is impossible to simply "remove" the password from an archive, since the data itself is encrypted with the password. You could make a quick batchfile implementing a "remove password" feature, which could simply unrar the archive, and then re-compress the files without a password. Technically , the data is compressed before being encrypted. This indicates that, given enough knowledge of the RAR file format itself, one could create a tool to AES-decrypt the datastream of the compressed files, and then save it into a new RAR archive. It should be noted, however, that this requires extensive knowledge of the file format itself. Given the number of open-source tools that support password-protected RAR files (e.g. unar), one c...

Compressing A Folder With Many Duplicated Files

Answer : Best options in your case is 7-zip. Here is the options: 7za a -r -t7z -m0=lzma2 -mx=9 -mfb=273 -md=29 -ms=8g -mmt=off -mmtf=off -mqs=on -bt -bb3 archife_file_name.7z /path/to/files a - add files to archive -r - Recurse subdirectories -t7z - Set type of archive (7z in your case) -m0=lzma2 - Set compression method to LZMA2 . LZMA is default and general compression method of 7z format. The main features of LZMA method: High compression ratio Variable dictionary size (up to 4 GB) Compressing speed: about 1 MB/s on 2 GHz CPU Decompressing speed: about 10-20 MB/s on 2 GHz CPU Small memory requirements for decompressing (depend from dictionary size) Small code size for decompressing: about 5 KB Supporting multi-threading and P4's hyper-threading -mx=9 - Sets level of compression. x=0 means Copy mode (no compression). x=9 - Ultra -mfb=273 - Sets number of fast bytes for LZMA. It can be in the range from 5 to 273. The default value is 32 for normal mode and 64 for maximum...