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

Use encryption for basic auth password in database #39

Closed
camann9 opened this issue Jan 23, 2015 · 2 comments
Closed

Use encryption for basic auth password in database #39

camann9 opened this issue Jan 23, 2015 · 2 comments

Comments

@camann9
Copy link

camann9 commented Jan 23, 2015

Currently the password for basic auth is stored in clear text in the redis datastore. Users might use the same password for other websites. Thus a compromised redis store would mean that all passwords of users are known to an attacker which might lead to hacked email accounts, etc. Preserving backward compatibility with existing data in the DB is not hard, just add a field "pwencoding" that stores the hash algorithm used and defaults no 'none' if it's not present.
Tyk analytics already uses password hashing but I don't know which one. Using PBKDF would probably be a good idea.

@camann9 camann9 changed the title Use encraption for basic auth password in database Use encryption for basic auth password in database Jan 23, 2015
@lonelycode
Copy link
Member

Tyk analytics uses bcrypt.

@lonelycode
Copy link
Member

Basic Auth passwords are now hashed by default in the development branch of Tyk, will be in the next point release.

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

No branches or pull requests

2 participants