尝试创建一个与TrueZIP java库兼容的加密ZIP文件。
我试过7z
7za -tzip -mem=AES256 a out.myzip -pFoo in.file但是在TrueZIP中解密时,我得到了例外情况:
W/System.err: de.schlichtherle.truezip.io.InputException:
java.util.zip.ZipException: in.file (encrypted compression method 8
is not supported)发布于 2016-10-16 18:15:19
它用的是
7z -tzip -mm=Deflate -mem=AES256 a .... 和
@Override
public AesKeyStrength getKeyStrength(String arg0)
throws ZipKeyException {
return AesKeyStrength.BITS_256;
}在爪哇那边。
https://stackoverflow.com/questions/40073015
复制相似问题