Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: TZipFile password



Permlink Replies: 2 - Last Post: Feb 13, 2017 4:28 PM Last Post By: nico preto
nico preto

Posts: 4
Registered: 9/8/12
TZipFile password
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 13, 2017 9:42 AM
How can I create a zip file with password using System.Zip.TZipFile?

Thanks for help
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: TZipFile password
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 13, 2017 11:26 AM   in response to: nico preto in response to: nico preto
nico wrote:

How can I create a zip file with password using System.Zip.TZipFile?

Unfortunately, you cannot, as that is still not a supported feature. There
are several reports in QualityCentral and QualityPortal that are open on
this issue:

TZipFile doesn't support encrypted/password-protected files
http://qc.embarcadero.com/wc/qcmain.aspx?d=98298

Support zip files with password (TZipFile)
http://qc.embarcadero.com/wc/qcmain.aspx?d=123517

System.zip should handle password protected zip files
https://quality.embarcadero.com/browse/RSP-14126

Missing support for password-protected files in TZipFile
https://quality.embarcadero.com/browse/RSP-16850

Marco Cantù added a comment to that last one just this morning: "We'll consider
adding this in the future."

However, supposedly in 10.1 Berlin, TZipFile can extract from an encrypted
(ie, password-protected) zip, at least.

http://docwiki.embarcadero.com/RADStudio/Berlin/en/What%27s_New#Encrypted_ZIP_File_Support

http://docwiki.embarcadero.com/Libraries/Berlin/en/System.Zip.TZipFile.Extract#Extracting_Password-protected_Files

--
Remy Lebeau (TeamB)
nico preto

Posts: 4
Registered: 9/8/12
Re: TZipFile password
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 13, 2017 4:28 PM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Thanks Remy!

Remy Lebeau (TeamB) wrote:
nico wrote:

How can I create a zip file with password using System.Zip.TZipFile?

Unfortunately, you cannot, as that is still not a supported feature. There
are several reports in QualityCentral and QualityPortal that are open on
this issue:

TZipFile doesn't support encrypted/password-protected files
http://qc.embarcadero.com/wc/qcmain.aspx?d=98298

Support zip files with password (TZipFile)
http://qc.embarcadero.com/wc/qcmain.aspx?d=123517

System.zip should handle password protected zip files
https://quality.embarcadero.com/browse/RSP-14126

Missing support for password-protected files in TZipFile
https://quality.embarcadero.com/browse/RSP-16850

Marco Cantù added a comment to that last one just this morning: "We'll consider
adding this in the future."

However, supposedly in 10.1 Berlin, TZipFile can extract from an encrypted
(ie, password-protected) zip, at least.

http://docwiki.embarcadero.com/RADStudio/Berlin/en/What%27s_New#Encrypted_ZIP_File_Support

http://docwiki.embarcadero.com/Libraries/Berlin/en/System.Zip.TZipFile.Extract#Extracting_Password-protected_Files

--
Remy Lebeau (TeamB)
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02