fusion44 / blitz_api

A management backend for the RaspiBlitz project written in Python / FastAPI
MIT License
18 stars 18 forks source link

native_python: Use a password hash instead of a clear text password #255

Open fusion44 opened 2 months ago

fusion44 commented 2 months ago

Right now the api reads the clear text password from the environment. Change thid to use a precomputed hashed password instead.

https://github.com/fusion44/blitz_api/blob/11f8d57f4e51a0c84b6c197c6c2ef7eadfe4768f/app/system/impl/native_python.py#L67

thejamesgore commented 1 month ago

Thought I would give this a crack as was implemented something similar using bcrypt in one of my projects