I think it is pretty easy to conceal the password by using something like "cat" command to get the password in a file that has permissions only for your user:
# only your should be able to read this file, so we have to change its permissions
chmod 700 ~/.config/projetcname/credentials.txt
# in the bellow example we are using awk to read the line that has "password" and print the second field
password=$(awk '/password/ {print $2}' credentials.txt)
The credential files should be something like:
user: username
password: yourveryconvolutedpassword
I gave you a shell script example but it could perfectly be done using python. This way you do not have to exposure your credentials.
I think it is pretty easy to conceal the password by using something like "cat" command to get the password in a file that has permissions only for your user:
The credential files should be something like:
I gave you a shell script example but it could perfectly be done using python. This way you do not have to exposure your credentials.