![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
文章平均质量分 83
ir0nf1st
老猿新博客,分享技术心得,锻炼写作水平。接受任何批评指正。有合作意向欢迎与我联系。
展开
-
Python处理二进制结构化数据时的技术细节
处理二进制文件或者从网络接收字节流时,字节流中的结构化数据可能存在二进制有符号数。虽然开发者根据字节流协议可以先验的知道有符号数的字节序、字长、符号位等信息,但在使用Python进行类型转换时缺少将这些信息显式传递给Python解释器的手段。本文介绍了两种在Python开发中处理二进制有符号数的方法。原创 2017-04-07 17:55:41 · 2600 阅读 · 0 评论 -
Protect Python Code with Bytecode Obfuscation
There are several ways to protect Python source. Some of them are not so effective and some of them are effective but with side effects. This post gives a brief analysis of these ways and then gives out a solution to effectively protect Python code without原创 2017-03-14 00:50:53 · 3188 阅读 · 0 评论 -
通过字节码混淆来保护Python代码
Python开发者常常面临这样一个难题,即如何保护代码中的技术秘密。笔者尝试过的一些Python代码保护工具要么难以有效实现该目标,要么有效但是有着不可忽视的缺点。本文首先对常见的Python代码保护机制以及几个比较容易获得的Python代码保护工具进行了简单的分析,然后展示了通过字节码混淆来保护Python代码的技术原理。原创 2017-03-12 21:47:07 · 27779 阅读 · 10 评论 -
Processing binary structured data with Python
When processing binary file or receiving byte stream from network, the binary structured data in the stream may contain signed numbers. According to the pre-defined stream protocol, developer has already have prior knowledge about the alignment/byteorder/w原创 2017-04-13 01:21:34 · 637 阅读 · 1 评论