Skip to content
This repository was archived by the owner on Nov 14, 2022. It is now read-only.

Conversation

@georgestephanis
Copy link
Collaborator

Increase the entropy to over 128 bits, in order to make trying to crack application passwords sufficiently difficult.

ref: 'boring crypto'

62 possible characters (26 upper + 26 lower + 10 digits)
If 16 characters long, 62^16 = 95.27 bits of entropy
20 characters, is 119.08 bits of entropy
22 gets us to over 128 bits with 130.99 bits of entropy, but to keep it
chunkable in groups of four, let's bump up to 24.
24 characters gets us 142.90 bits of entropy.

We have achieved [boring
crypto](http://cr.yp.to/talks/2015.10.05/slides-djb-20151005-a4.pdf)

Props @voodooKobra (for the advice on sufficient levels of entropy),
@TimothyBJacobs (for the crypto nag)
Previously, if there was no meta value returned, it would be a string,
which could cause errors.
@georgestephanis
Copy link
Collaborator Author

Props @sarciszewski rather -- got his GitHub handle wrong, it's not voodooKobra

class.application-passwords.php:19:8: error - There must be exactly one
blank line before the tags in a doc comment
(Generic.Commenting.DocComment.SpacingBeforeTags)
georgestephanis added a commit that referenced this pull request Feb 19, 2016
@georgestephanis georgestephanis merged commit d9b7cae into master Feb 19, 2016
@georgestephanis
Copy link
Collaborator Author

google application passwords

Just for further information on this front, Google Accounts generated application passwords seem to be only lower-case letters, so just 26^16 -- or 75.21 bits of entropy.

@georgestephanis
Copy link
Collaborator Author

Just to confirm, GitHub's personal access tokens are actually 40 character hex strings.

So they would have 16^40 entropy, or 160 entropy. Also p. hard to type out places.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants