Skip to content

Invalid password error for valid password #1255

@rdhasse

Description

@rdhasse

We have an Excel workbook that is password protected. It opens fine with Excel, but with EPPlus an "Invalid password" error is thrown. Stacktrace below. I attached the workbook. The valid password is "fayneuberger1!"

at OfficeOpenXml.Encryption.EncryptedPackageHandler.DecryptAgile(EncryptionInfoAgile encryptionInfo, String password, Int64 size, Byte[] encryptedData, Byte[] data)
at OfficeOpenXml.Encryption.EncryptedPackageHandler.DecryptDocument(Byte[] data, EncryptionInfo encryptionInfo, String password)
at OfficeOpenXml.Encryption.EncryptedPackageHandler.GetStreamFromPackage(CompoundDocument doc, ExcelEncryption encryption)
at OfficeOpenXml.Encryption.EncryptedPackageHandler.DecryptPackage(MemoryStream stream, ExcelEncryption encryption)
at OfficeOpenXml.ExcelPackage.Load(Stream input, Stream output, String Password)
at OfficeOpenXml.ExcelPackage.Load(Stream input, String Password)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions