Skip to content

Hide password and possible username under the system #15

@voyeg3r

Description

@voyeg3r

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions