using cython with pyarmor

30 views
Skip to first unread message

Effectimminent

unread,
Jul 5, 2024, 2:51:17 AMJul 5
to cython-users
trying to use cython to improve the speed and resistance of pyarmor modules wondering if there is a method for doing this

da-woods

unread,
Jul 7, 2024, 5:31:54 AMJul 7
to cython...@googlegroups.com
I suspect not.

It looks like pyarmor translates your Python code to something like

```
from pyarmorruntime import __pyarmor__
__pyarmor__(b"some nonsense byte string")
```

It translates the byte string back to Python bytecode at runtime. So there's nothing useful for Cython to compile - it's just a function call and a byte string.

However, there's some old documentation about it which has since been removed https://web.archive.org/web/20220528111644/https://pyarmor.readthedocs.io/en/latest/advanced.html#work-with-cython

To be clear - obfuscation is not a use-case that Cython cares about so please don't think that we spend any time worrying about making Cython extension modules hard to reverse engineer.




On 05/07/2024 06:41, Effectimminent wrote:
trying to use cython to improve the speed and resistance of pyarmor modules wondering if there is a method for doing this
--

---
You received this message because you are subscribed to the Google Groups "cython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cython-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cython-users/3e7ca436-b226-49a7-aa4b-198c2cfa8dfen%40googlegroups.com.


Reply all
Reply to author
Forward
0 new messages