Skip to content

Increase token length from 128 bits to 512 bits#1723

Merged
williamjallen merged 1 commit intoKitware:masterfrom
williamjallen:token-length
Sep 28, 2023
Merged

Increase token length from 128 bits to 512 bits#1723
williamjallen merged 1 commit intoKitware:masterfrom
williamjallen:token-length

Conversation

@williamjallen
Copy link
Collaborator

Authentication tokens currently only contain 128 bits of entropy. This PR increases the entropy to 512 bits, which is the maximum value we can use without changing the hashing algorithm. If we limit the available character set to the 62 upper- and lower-case alphanumeric characters, 86 characters are necessary to exceed 512 bits of entropy, assuming my calculations are correct.

@josephsnyder josephsnyder added this pull request to the merge queue Sep 28, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 28, 2023
@williamjallen williamjallen added this pull request to the merge queue Sep 28, 2023
Merged via the queue into Kitware:master with commit a9bb192 Sep 28, 2023
@williamjallen williamjallen deleted the token-length branch September 28, 2023 16:03
zackgalbreath pushed a commit that referenced this pull request Nov 6, 2023
Authentication tokens currently only contain 128 bits of entropy. This
PR increases the entropy to 512 bits, which is the maximum value we can
use without changing the hashing algorithm. If we limit the available
character set to the 62 upper- and lower-case alphanumeric characters,
86 characters are necessary to exceed 512 bits of entropy, assuming my
calculations are correct.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments