Search code examples
linuxcompressionziprar

Getting files names inside a rar/zip file without unzip


Does anyone know if it is possible to get the name of files inside a rar/zip without having to unrar/unzip the file.. and if yes, is there a way to block it or make difficult..

Thanks


Solution

  • The file names in a zip file are visible even if the data is encrypted. If you want to hide the names, the easy solution is to zip the zip file encrypted.

    Later versions of PKZip do have an option to encrypt the file names as well with –cd=encrypt. (cd means central directory.)