怎么样加密Python代码并可以运行加密后的Python代码?
以下是我从一段加密后的Python代码中复制出来的,请问大神,这种效果是怎么实现的呢?
),??$?@???;?? he??^Q?U??W ???]??sto
3?
@?$Np????k???//x??N4u????]?W!J?
???d?????S?2??y?IZ?r?T?_??Z^?S\???V??L?T???pz$???v???H?>0???3???O
P????a?!?F????\?)???)}o?j[??????t|Ea???gt>x??J??#?\??
??(?yЩ%t <?J??IV;?,ie??80?8?d4<?o??p
sl?zA(??Zl_????i4???Ra??p???F???/?}?U? ?? ??syX?r??n\??????;e?69?#???y?x?e?8????d?????e??7EY?%~?79W??#2Y??U??B?'?_8&5,/ LO???}G(?????DbN?~T?mHR? ?^?&xSa?rr3n??H$9??1,YK?b?If?l?fe??+?g$??q???????*?&??J*? ??
( V?p?:u>?#T???0S?????8Lj?^???Pcw?lI9R???wk5???7 ???8???0 E*?` ????Q???6m??r??C9?P??K??U???ρE????)??x????Z?R???!ш??
???)?
1、安装pyarmor: pip install pyarmor 2、加密代码 pyarmor pack -e "--exclude tests --exclude examples" --output ./encrypted ./src 这里,./src 是你的源代码目录,encrypted 是加密后的代码存放目录。 3、pyarmor licenses --add 你的许可证码 pyarmor licenses --register 你的注册码 pyarmor licenses --show 4、pyarmor run --save-runtime -B --output-directory ./dist ./encrypted/main.py