Forum

Author Topic: Is it possible to encrypt our python code using locale module in Metashape?  (Read 550 times)

dwieka

  • Newbie
  • *
  • Posts: 14
    • View Profile
Hello Everyone!
I'm just wondering is it possible for us to encrpyt our python code using locale module in Metashape environment? Right now I'm developing some script and it will be used by a lot of people, and I want to encrypt those code so the user cannot read the raw file.
Thank You!  :D

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14485
    • View Profile
Hello dwieka,


The question seems to be quite general for Python scripts, as it is not related to Metashape module itself.
‚ÄčThere could be several ways of solution, although they are not ideal.The main option is script obfuscation, see related links below:
 http://pyob.oxyry.com/
 https://github.com/astrand/pyobfuscate
 http://www.bitboost.com/

Another way is creating an executable from the code and all required dependencies, such option can be based on stand-alone Metashape Python module:
https://stackoverflow.com/questions/5458048/how-can-i-make-a-python-script-standalone-executable-to-run-without-any-dependen

 

Best regards,
Alexey Pasumansky,
Agisoft LLC