-
Notifications
You must be signed in to change notification settings - Fork 263
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels