Skip to main content
added 29 characters in body
Source Link

Maybe you can try on pyconcrete, it's my open-source project

encrypt .pyc to .pye and decrypt when import it

encrypt & decrypt by library OpenAES

Usage

Full encrypted

  • convert all of your .py to *.pye

     $ pyconcrete-admin.py compile --source={your py script} --pye $ pyconcrete-admin.py compile --source={your py module dir} --pye 
  • remove *.py *.pyc or copy *.pye to other folder

  • main.py encrypted as main.pye, it can't be executed by normal python. You must use pyconcrete to process the main.pye script. pyconcrete(exe) will be installed in your system path (ex: /usr/local/bin)

     pyconcrete main.pye src/*.pye # your libs 

Partial encrypted (pyconcrete as lib)

  • download pyconcrete source and install by setup.py

     $ python setup.py install \ --install-lib={your project path} \ --install-scripts={where you want to execute pyconcrete-admin.py and pyconcrete(exe)} 
  • import pyconcrete in your main script

  • recommendation project layout

     main.py # import pyconcrete and your lib pyconcrete/* # put pyconcrete lib in project root, keep it as original files src/*.pye # your libs 

Maybe you can try on pyconcrete

encrypt .pyc to .pye and decrypt when import it

encrypt & decrypt by library OpenAES

Usage

Full encrypted

  • convert all of your .py to *.pye

     $ pyconcrete-admin.py compile --source={your py script} --pye $ pyconcrete-admin.py compile --source={your py module dir} --pye 
  • remove *.py *.pyc or copy *.pye to other folder

  • main.py encrypted as main.pye, it can't be executed by normal python. You must use pyconcrete to process the main.pye script. pyconcrete(exe) will be installed in your system path (ex: /usr/local/bin)

     pyconcrete main.pye src/*.pye # your libs 

Partial encrypted (pyconcrete as lib)

  • download pyconcrete source and install by setup.py

     $ python setup.py install \ --install-lib={your project path} \ --install-scripts={where you want to execute pyconcrete-admin.py and pyconcrete(exe)} 
  • import pyconcrete in your main script

  • recommendation project layout

     main.py # import pyconcrete and your lib pyconcrete/* # put pyconcrete lib in project root, keep it as original files src/*.pye # your libs 

Maybe you can try on pyconcrete, it's my open-source project

encrypt .pyc to .pye and decrypt when import it

encrypt & decrypt by library OpenAES

Usage

Full encrypted

  • convert all of your .py to *.pye

     $ pyconcrete-admin.py compile --source={your py script} --pye $ pyconcrete-admin.py compile --source={your py module dir} --pye 
  • remove *.py *.pyc or copy *.pye to other folder

  • main.py encrypted as main.pye, it can't be executed by normal python. You must use pyconcrete to process the main.pye script. pyconcrete(exe) will be installed in your system path (ex: /usr/local/bin)

     pyconcrete main.pye src/*.pye # your libs 

Partial encrypted (pyconcrete as lib)

  • download pyconcrete source and install by setup.py

     $ python setup.py install \ --install-lib={your project path} \ --install-scripts={where you want to execute pyconcrete-admin.py and pyconcrete(exe)} 
  • import pyconcrete in your main script

  • recommendation project layout

     main.py # import pyconcrete and your lib pyconcrete/* # put pyconcrete lib in project root, keep it as original files src/*.pye # your libs 
added 561 characters in body
Source Link

Maybe you can try on pyconcrete

encrypt .pyc to .pye and decrypt when import it

encrypt & decrypt by library OpenAES

Usage

Full encrypted

  • convert your script to *.pye

    convert all of your .py to *.pye

     $ pyconcrete-admin.py compile --source={your py script} --pye $ pyconcrete-admin.py compile --source={your py module dir} --pye 
 $ pyconcrete-admin.py compile --source= --pye $ pyconcrete-admin.py compile --source= --pye 
  • remove *.py *.pyc or copy *.pye to other folder

  • mainmain.py encrypted as main.pye, it can't be executed by normal python. You must use pyconcrete to process the main.pye script. pyconcrete(exe) will be installed in your system path (ex: /usr/local/bin)

    • recommendation project layout
    • python execute main script as *.pye will cause exception, so main script can't be encrypted
     pyconcrete main.pye src/*.pye # your libs 
 main.py # your main scirpt, must can't be encrypted src/*.pye # your libs 

Partial encrypted (pyconcrete as lib)

  • download pyconcrete source and install by setup.py

     $ python setup.py install \ --install-lib={your project path} \ --install-scripts={where you want to execute pyconcrete-admin.py and pyconcrete(exe)} 
  • import pyconcrete in your main script

  • recommendation project layout

     main.py # import pyconcrete and your lib pyconcrete/* # put pyconcrete lib in project root, keep it as original files src/*.pye # your libs 

Maybe you can try on pyconcrete

encrypt .pyc to .pye and decrypt when import it

encrypt & decrypt by library OpenAES

Usage

  • convert your script to *.pye
 $ pyconcrete-admin.py compile --source= --pye $ pyconcrete-admin.py compile --source= --pye 
  • remove *.py *.pyc or copy *.pye to other folder

  • main script

    • recommendation project layout
    • python execute main script as *.pye will cause exception, so main script can't be encrypted
 main.py # your main scirpt, must can't be encrypted src/*.pye # your libs 

Maybe you can try on pyconcrete

encrypt .pyc to .pye and decrypt when import it

encrypt & decrypt by library OpenAES

Usage

Full encrypted

  • convert all of your .py to *.pye

     $ pyconcrete-admin.py compile --source={your py script} --pye $ pyconcrete-admin.py compile --source={your py module dir} --pye 
  • remove *.py *.pyc or copy *.pye to other folder

  • main.py encrypted as main.pye, it can't be executed by normal python. You must use pyconcrete to process the main.pye script. pyconcrete(exe) will be installed in your system path (ex: /usr/local/bin)

     pyconcrete main.pye src/*.pye # your libs 

Partial encrypted (pyconcrete as lib)

  • download pyconcrete source and install by setup.py

     $ python setup.py install \ --install-lib={your project path} \ --install-scripts={where you want to execute pyconcrete-admin.py and pyconcrete(exe)} 
  • import pyconcrete in your main script

  • recommendation project layout

     main.py # import pyconcrete and your lib pyconcrete/* # put pyconcrete lib in project root, keep it as original files src/*.pye # your libs 
added 76 characters in body
Source Link

Maybe you can try on pyconcrete

encrypt .pyc to .pye and decrypt when import it

encrypt & decrypt by library OpenAES

Usage

  • convert your script to *.pye

    $ pyconcrete-admin.py compile --source= --pye $ pyconcrete-admin.py compile --source= --pye

    convert your script to *.pye
 $ pyconcrete-admin.py compile --source= --pye $ pyconcrete-admin.py compile --source= --pye 
  • remove *.py *.pyc or copy *.pye to other folder

  • main script

    • recommendation project layout

      recommendation project layout
    • python execute main script as *.pye will cause exception, so main script can't be encrypted

      main.py # your main scirpt, must can't be encrypted src/*.pye # your libs

      python execute main script as *.pye will cause exception, so main script can't be encrypted
 main.py # your main scirpt, must can't be encrypted src/*.pye # your libs 

Maybe you can try on pyconcrete

encrypt .pyc to .pye and decrypt when import it

Usage

  • convert your script to *.pye

    $ pyconcrete-admin.py compile --source= --pye $ pyconcrete-admin.py compile --source= --pye

  • remove *.py *.pyc or copy *.pye to other folder

  • main script

    • recommendation project layout

    • python execute main script as *.pye will cause exception, so main script can't be encrypted

      main.py # your main scirpt, must can't be encrypted src/*.pye # your libs

Maybe you can try on pyconcrete

encrypt .pyc to .pye and decrypt when import it

encrypt & decrypt by library OpenAES

Usage

  • convert your script to *.pye
 $ pyconcrete-admin.py compile --source= --pye $ pyconcrete-admin.py compile --source= --pye 
  • remove *.py *.pyc or copy *.pye to other folder

  • main script

    • recommendation project layout
    • python execute main script as *.pye will cause exception, so main script can't be encrypted
 main.py # your main scirpt, must can't be encrypted src/*.pye # your libs 
Source Link
Loading