Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bare minimum password obfuscation #6

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

toyg
Copy link

@toyg toyg commented Aug 5, 2017

This patch implements bare-minimum credential obfuscation. User and password must be added to a file called .siricontrolsecret, which can live in $HOME or alongside the main script. The password is b64encoded on first run.

This was written with compatibility in mind; it should work with python 2.3 and above (and only because I lazily added a set() call to deduplicate a list - otherwise it would have probably worked on 2.2 or even lower). I tested with 2.6, 2.7 and 3.6.

This is NOT a secure implementation, it's only the bare minimum to keep people from saving cleartext passwords - somebody even ended up saving their gmail password to github where everybody can see it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant