I thought using dotenv I could hide the strings on cythonized binary file.
All the dotenv python samples I see are telling me to place the .env file on the source(application) path. Seems they are talking about their python application is running on a server. Or its submitted on github.
But I run my python application on a Raspberry Pi (SD Card) If I place the .env file on the application path then it will be worse than hardcoding the variables on the source code.
Also I could not make venv on Raspberry Pi because PyCharm Remote development doesn't support venv on remote Raspberry Pi. So I do my development without venv (Direct global)
- How can I secure my variables with Secret API Keys, URLs, Passwords ?
- Can I still use .env file and dotenv and some how hide it on the SD card ?
- Is there any other solution for my workflow ?
By the way, I plan to use Cython to convert my python code as native executables.
SYSTEM:
Target System: Raspberry Pi 4 Buster 32bit OS (Linux)
Language used: Python3.7
IDE: PyCharm
Remote development: From Windows 10