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

[Question] - Crypto usage #97

Closed
vankk opened this issue May 17, 2020 · 5 comments
Closed

[Question] - Crypto usage #97

vankk opened this issue May 17, 2020 · 5 comments

Comments

@vankk
Copy link

vankk commented May 17, 2020

Hello, I was trying to use the crypto key and I came across with this thread on stackoverflow, also tried to use pip install pycrypto and didn't worked as well. Seems that the package has some issues, there is any plan to update this feature or just I may doing some wrong?!😛

Edit: nvm, just saw that the pyinstaller still requires the pycrypto and didn't updated yet.

Regards,
vankk.

@brentvollebregt
Copy link
Owner

If you want to use the --key argument from PyInstaller, I definitely recommend using pycryptodome instead of PyCrypto as it is safer. It has almost the same API as PyCrypto so it should work.

You can install pycryptodome using:

python -m pip install pycryptodome

@vankk
Copy link
Author

vankk commented May 19, 2020

Could you post an usage sample? Did a few searchs the past days and everytime that I open the the .exe returns an Failed to execute script pyiboot01_bootstrap.

@brentvollebregt
Copy link
Owner

Outlined in "Encrypting Python Bytecode" are some details on how to encrypt your executable contents.

I had been told that pycryptodome works with pyinstaller but when trying it myself, it appears that may not be the case. I get an error saying: zlib.error: Error -3 while decompressing data: incorrect header check.

I have noticed in PyInstallers GitHub issues that the maintainer has mentioned that --key is no longer available. I did a search for --key in PyInstallers GitHub issues and found this PR but unfortunately it hasn't been merged yet - looks promising though.

@vankk
Copy link
Author

vankk commented May 25, 2020

Thanks my friend, that helped alot.

@brentvollebregt
Copy link
Owner

Sweet. Since this is more related to PyInstaller than this tool, I'll close the issue. If you do find an issue with this, feel free to open a new issue.

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

No branches or pull requests

2 participants