RAR Encrypt File Name option

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
zappozeppo
Junior Member
Junior Member
Posts: 6
Joined: 2014-02-21, 14:01 UTC
Location: Italy

RAR Encrypt File Name option

Post by *zappozeppo »

Hi.
WinRAR encrypting facility has an option to encrypt hiding file names.
This prevents to see file and folder names inside a RAR file (everybody can see these data BEFORE inserting the password).
When using WinRAR from inside TC this option is not available.
I've tried several ways to create a button using the switch -hp from TC, without positive results.
Any suggestion?
The best should be having a check within TC Pack mask.

Tank you in advance,
ZZ
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50383
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: RAR Encrypt File Name option

Post by *ghisler(Author) »

Just add -hp to the RAR command in Configuration - Options - Packer.
Author of Total Commander
https://www.ghisler.com
zappozeppo
Junior Member
Junior Member
Posts: 6
Joined: 2014-02-21, 14:01 UTC
Location: Italy

Re: RAR Encrypt File Name option

Post by *zappozeppo »

Adding -hp to winrar launch string in TC Packer options does the job, but rar compression is now contantly in encrypting mode.
OK, you can avoid encrypting pressing ESCape everytime ...
Anyway, this solution is OK for me.
Thank you Christian.
ZZ
zappozeppo
Junior Member
Junior Member
Posts: 6
Joined: 2014-02-21, 14:01 UTC
Location: Italy

Re: RAR Encrypt File Name option

Post by *zappozeppo »

Just to complete:
Adding -hp to winrar launch string in TC Packer options is also active unpacking RAR files.
In other words, when you unpack a RAR file it asks for decrypting password even if the RAR file is not encrypted.
At this point typing ESC solves and unRARing runs as normal.
Best regards
ZZ
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50383
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: RAR Encrypt File Name option

Post by *ghisler(Author) »

Why not use the internal RAR unpacker using the official unrar dll?
Author of Total Commander
https://www.ghisler.com
redfox
Member
Member
Posts: 101
Joined: 2015-02-09, 11:36 UTC
Location: Czech Republic

Re: RAR Encrypt File Name option

Post by *redfox »

I am facing the same problem.

To the Ghisler's question, why not to use internal rar unpacker:

Internal unpacker does not provide the -ola switch, so if the archive contains directory symlinks, they will be unpacked and copied as normal directories, not symlinks.

If I use Winrar instead and include the -hp switch in TC config, I will be asked for password every time I use compression or decompression. This is quite annoying.

Will you add the file names encryption as an option to the GUI, Mr. Ghisler? When?
Thank you.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50383
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: RAR Encrypt File Name option

Post by *ghisler(Author) »

Unfortunately unrar.dll doesn't seem to be able to unpack symlinks. I did some tests already in 2014, but couldn't get anywhere:
https://www.ghisler.ch/board/viewtopic.php?t=40092
Author of Total Commander
https://www.ghisler.com
redfox
Member
Member
Posts: 101
Joined: 2015-02-09, 11:36 UTC
Location: Czech Republic

Re: RAR Encrypt File Name option

Post by *redfox »

The easiest solution would be to encrypt the RAR file structure by default, when using Winrar as the external packer. TC should pass the -hp switch, instead of -p to Winrar, after an user selects the password protection in TC's GUI.
Post Reply