0

尝试创建与 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)
4

1 回答 1

0

它使用

 7z -tzip -mm=Deflate -mem=AES256 a .... 

    @Override
    public AesKeyStrength getKeyStrength(String arg0)
            throws ZipKeyException {
        return AesKeyStrength.BITS_256;
    }

在Java方面。

于 2016-10-16T18:15:19.883 回答