I want to execute a subprocess in python, and the subprocess needs an argument to specify a password. By default, anyone who can log into this machine can receive a password using the utility pswhen my subprocess is running.
And I know that Popen has a parameter __executable__that can hide the real name of the program, but cannot hide the subprocess password argument.
How to hide my password?
PS: I work on Linux.
source
share