1
0

interface: add padding and some noise to protocol messages

basic countermeasures against traffic analysis
This commit is contained in:
SomberNight
2025-02-13 18:48:11 +00:00
parent 5fd6603ea6
commit 447052b4ff
3 changed files with 125 additions and 5 deletions

View File

@@ -75,8 +75,8 @@ def check_imports():
import aiorpcx
except ImportError as e:
sys.exit(f"Error: {str(e)}. Try 'sudo python3 -m pip install <module-name>'")
if not ((0, 22, 0) <= aiorpcx._version < (0, 26)):
raise RuntimeError(f'aiorpcX version {aiorpcx._version} does not match required: 0.22.0<=ver<0.26')
if not ((0, 25, 0) <= aiorpcx._version < (0, 26)):
raise RuntimeError(f'aiorpcX version {aiorpcx._version} does not match required: 0.25.0<=ver<0.26')
# the following imports are for pyinstaller
from google.protobuf import descriptor
from google.protobuf import message