mirror of
https://github.com/esphome/esphome.git
synced 2026-02-19 16:05:35 -07: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
375 MiB
Languages
C++
64.2%
Python
35.5%
C
0.2%
