Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

excelize.OpenFile function returns error is : decrypted file failed #761

Closed
wenzi1 opened this issue Jan 14, 2021 · 5 comments
Closed

excelize.OpenFile function returns error is : decrypted file failed #761

wenzi1 opened this issue Jan 14, 2021 · 5 comments
Labels
needs more info This issue can't reproduce, need more info

Comments

@wenzi1
Copy link

wenzi1 commented Jan 14, 2021

Description
excelize.OpenFile function returns error

Steps to reproduce the issue:
1.excelize.OpenFile
2.
3.

Describe the results you received:
error message is : decrypted file failed
Describe the results you expected:
expect error is nil

Output of go version:
go1.15.1

(paste your output here)

Excelize version or commit ID:
v2.3.1

The file can be opened normally after copying the error content of Excel to the new excel

Environment details (OS, Microsoft Excel™ version, physical, etc.):
excel version is WPS 11.8.2.8555

@xuri
Copy link
Member

xuri commented Jan 14, 2021

Thanks for your feedback. Note that the excelize just support decrypt with ECMA-376 agile encryption and standard encryption. Support cryptographic algorithm: MD4, MD5, RIPEMD-160, SHA1, SHA256, SHA384, and SHA512 currently. Maybe the encryption algorithm used by the spreadsheet you opened hasn't been supported yet.

@xuri xuri added the needs more info This issue can't reproduce, need more info label Jan 14, 2021
@Meschkov
Copy link

I have also the same error message when I try to open an excel file that was generated from one of our customers.

image

Here is the https://easyupload.io/roil1s Excel sheet that cause the error.

Versions

go version go1.15.4 darwin/amd64
github.com/360EntSecGroup-Skylar/excelize/v2 v2.3.1

@xuri
Copy link
Member

xuri commented Jan 29, 2021

Note that this lib doesn't support the legacy XLS format files currently, reference issue: #44

@Meschkov
Copy link

Note that this lib doesn't support the legacy XLS format files currently, reference issue: #44

Okay thanks, good to know.

@xuri
Copy link
Member

xuri commented Feb 9, 2021

There still no more details about this issue from the issue author. I close this issue and welcome left comments if you have any more questions.

@xuri xuri closed this as completed Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info This issue can't reproduce, need more info
Projects
None yet
Development

No branches or pull requests

3 participants