How to configure zip4j to use bouncycastle encryption (fips provider)

101 Views Asked by At

I need to create a password protected (encrypted) ZIP in java and I am using zip4j for it. I now need to use a specific cryptographic provider (bouncy castle fips version) with zip4j but I could not figure out how to configure zip4j to use it if at all possible

Any tips/samples would be greatly appreciated

Thank you Alex

1

There are 1 best solutions below

2
Motscha On

Unfortunately this is not possible.

zip4j uses its own AES Implementation, as you can see here: https://github.com/srikanth-lingala/zip4j/tree/master/src/main/java/net/lingala/zip4j/crypto