Falldog / pyconcrete

Protect your python script, encrypt it as .pye and decrypt when import it
Apache License 2.0
692 stars 149 forks source link

Add option to read passphrase from env vars #92

Closed leonardoobaptistaa closed 2 years ago

leonardoobaptistaa commented 2 years ago

New versions of pip dropped support to --egg and there was no alternative to silent install.

This PR adds support to pass the passphrase via the environment variable PASSPHRASE, ie:

PASSPHRASE=YOUR_PASSPHRASE_HERE pip install pyconcrete

ps: I didn't find a way to test this in your unit tests, but I can add it if pointed to right direction. fixes #32

Falldog commented 2 years ago

Hi @leonardoobaptistaa , great job

I had tested, and it should be worked. Thanks for your help