Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
Ganshyam
Creator II

Unarchive Password protected zip file

Hello ,

I am trying to unzip the password protected zip file. The tfileunarchive component is available where we can set the password and provide the Decrypt Method. But it is not unzipping the file and it gives below error.

javax.crypto.IllegalBlockSizeException: Input length must be multiple of 8 when decrypting with padded cipher

I have select Decrypt method as :Java Decrypt.

This component works fine if we zip the file with tfilearchive and later use tfileunarchive to unzip the password protect file.

Please provide your input to over this.

Labels (3)
7 Replies
gjeremy1617088143

Hi have you try the Zip4j method instead of java decrypt?

Send me Love and Kudos

Ganshyam
Creator II
Author

Yes , I tried the Zip4j option ,

It gives me below error,

 

net.lingala.zip4j.exception.ZipException: net.lingala.zip4j.exception.ZipException: unsupported encryption method.

 

As per documentation:

Note that the encrypted archive must be one created by the tFileArchive component; otherwise you will see error messages or get nothing extracted even if no error message is displayed.

 

 

Anonymous
Not applicable

Hello,

In addition to that, tFileUnarchive component does not support 7 zip file.

Best regards

Sabrina

 

Ganshyam
Creator II
Author

ok,

 

Any option to read this zip file ,other then using tfileunarchive component?

Anonymous
Not applicable

Hello,

Could you please clarify in which Talend version/edition you are?

We have a similar issue and it is fixed in V 7.2.1.

Here is this jira issue: https://jira.talendforge.org/browse/TDI-42321

Best regards

Sabrina

 

 

Ganshyam
Creator II
Author

Hello,

 

Talend Enterprise Edition 7.3.1

 

Regards

Anonymous
Not applicable

Hello,

Are you able to read this zip file by using any standard archive software? If so, you could use tSystem component as a workaround to achieve your goal in talend.

Best regards

Sabrina