'How to avoid http sniffer from get private api from your code

I found a python compiled exe file that avoid http sniffer.It written in python 2.7.

when I run a sniffer it will freeze the code.I want to write the same property into my own code in latest python version.I cant find a solution for my problem.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source