mirror of
https://github.com/esphome/esphome.git
synced 2026-09-02 02:56:01 +00:00
9616596146395191bfcec01cc310b0cef58d1c1d
Replace random.random() with secrets.token_hex() for generating the client nonce in OTA challenge-response authentication. The random module uses Mersenne Twister which is not cryptographically secure. The secrets module is the correct choice for security-sensitive token generation.
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
585 MiB
Languages
C++
56.1%
Python
43.3%
C
0.3%
JavaScript
0.2%
