Skip to content
This repository has been archived by the owner on Jan 2, 2019. It is now read-only.

Could PHPExcel change password to anything other than 'Ve***op'? for Excel5 #478

Open
guzzilar opened this issue Dec 10, 2014 · 3 comments

Comments

@guzzilar
Copy link

I found exception 'Decryption password incorrect' from 'phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php'.

I checked on this problem line (1690) and I see the password was set to '_verifyPassword' function already (this password is a string, not php variable).

So, I tried to changed this password to other and test run my service again, and it's passed.
But I don't sure should I overwrite this function (_verifyPassword) in first parameter from string (default password) to variable and make some public function to set password for this variable?

Thank's

@MarkBaker
Copy link
Member

That's MS Excel's standard built-in password when you do a simple encryption.... I haven't a clue how you'd encrypt/decrypt with a user-defined password.... did it successfully decrypt a file encrypted with your own password?

@jaesung2061
Copy link

Same issue for me. I went to the file/line he pointed out and replaced the string with the password and it unlocked. Why is this a hardcoded string and not a variable we can change?

@issamkhadiri1989
Copy link

Hello everyone. I could find a solution of this issue.
A simple modification in the main Class "Excel5" and then, you can pass the password used to encrypt the file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants