Dmitry Zavalishin
Dmitry Zavalishin
python: import hashlib import hmac signature_computed = 'sha1=' + hmac.new( key=secret.encode('utf-8'), msg=data.encode('utf-8'), digestmod=hashlib.sha1 ).hexdigest() if not hmac.compare_digest(signature, signature_computed): log("Invalid payload")
Need #69 to implement this. Both done in Java send code. Other code checked to ignore extra packet data.
H - sending node (instance, not host!) name
java send/recv, python parse, no processing
c code TTRs recv/send - only pkt id yet
https://stackoverflow.com/questions/276052/how-to-get-current-cpu-and-ram-usage-in-python
https://pypi.org/project/psutil/
Does not work on cygwin, must do on Unix, depend on #6
https://app.codacy.com/project/dzavalishin/mqtt_udp/dashboard - coverage!