Switch -HP[pwd] - encrypt both file data and headers
This switch is similar to -p[p], but switch -p encrypts only file data and leaves other information like file names visible. This switch encrypts all sensitive archive areas including file data, file names, sizes, attributes, comments and other blocks, so it provides a higher security level.
Without a password it is impossible to view even the list of files in archive encrypted with -hp.
add the file report.txt to the encrypted archive secret.rar using the password 'fGzq5yKw'
WinRAR a -hpfGzq5yKw secret report.txt
See also: