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

Consider entropy when warning on hardcoded credentials #114

Merged
merged 4 commits into from
Jan 14, 2017
Merged

Conversation

gcmurphy
Copy link
Member

A first pass at solving #105 using zxcvbn. There are a number of things that can be configured in relation to this new feature including:

  • Whether the entropy of potential credentials be considered
  • Entropy threshold before a string is considered a credential
  • Entropy threshold per character
  • Length of string to calculate entropy on (performance tweak).

This will hopefully reduce the number of false positives when it comes
to hard coded credentials. The zxcvbn library is used to calculate the
entropy of the string. By default the first 16 characters are considered
as doing the entropy check for strings much longer than that introduces
a fairly significant performance hit.
@gcmurphy gcmurphy merged commit f6aeaa8 into master Jan 14, 2017
@gcmurphy gcmurphy deleted the feature branch July 19, 2017 21:19
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