I am using a python API
module called SpaceTrackTools. However, it requires the script to have the password and username stored as variables in the script. I was wondering if there is a safer way of saving the details?
谢谢。
I am using a python API
module called SpaceTrackTools. However, it requires the script to have the password and username stored as variables in the script. I was wondering if there is a safer way of saving the details?
谢谢。
You can encrypt the info using python, and here is how.
One option is to use dotenv.
This way you keep your private details in a separate file named
.env
.然后在运行时读取脚本中的私有详细信息。
例如:
文件.env值:
脚本用法: