简体   繁体   English

如何配置 zip4j 以使用 bouncycastle 加密(fips 提供者)

[英]How to configure zip4j to use bouncycastle encryption (fips provider)

I need to create a password protected (encrypted) ZIP in java and I am using zip4j for it.我需要在 java 中创建一个受密码保护(加密)的 ZIP 并且我正在使用 zip4j。 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我现在需要使用带有 zip4j 的特定加密提供程序(充气城堡 fips 版本),但如果可能的话,我无法弄清楚如何配置 zip4j 以使用它

Any tips/samples would be greatly appreciated任何提示/样品将不胜感激

Thank you Alex谢谢亚历克斯

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 zip4j 使用自己的 AES 实现,如您在此处看到的: https://github.com/srikanth-lingala/zip4j/tree/master/src/main/java/net/lingala/zip4j/crypto

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM