Hi,

According to https://poi.apache.org/encryption.html

The only document type with RC4 CryptoAPI encryption support is "HSLF", and
I found it was supported recently from the latest version.

After checking the source code, I found this encryption for HSSF(binary
stream .xls files) is simply not implemented yet.

_encryptionInfo = in.readUShort();
switch (_encryptionInfo) {
   case ENCRYPTION_OTHER_RC4:
      // handled below
      break;
   case ENCRYPTION_OTHER_CAPI_2:
   case ENCRYPTION_OTHER_CAPI_3:
   case ENCRYPTION_OTHER_CAPI_4:
      throw new EncryptedDocumentException(
            "HSSF does not currently support CryptoAPI encryption");
   default:
      throw new RecordFormatException("Unknown encryption info " +
_encryptionInfo);
}

Then I would like to know whether there is any plan or process working on
this problem.

Since the support for HSLF just came, would I expect this issue to be fixed
soon?

Reply via email to