Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

stephentoub
Copy link
Member

Rather than searching the whole input for + or / to know if we need to use Base64, we can search for those as well as - or _, which then on average means we only need to search through ~32 characters, assuming balanced input. The moment we see a - or _, we can just use Base64Url.

Rather than searching the whole input for + or / to know if we need to use Base64, we can search for those as well as - or _, which then on average means we only need to search through ~32 characters, assuming balanced input. The moment we see a - or _, we can just use Base64Url.
@stephentoub stephentoub marked this pull request as ready for review July 29, 2024 01:06
@ghost ghost added the area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions label Jul 29, 2024
@amcasey amcasey enabled auto-merge (squash) July 31, 2024 17:41
@amcasey amcasey merged commit 5c2dce5 into dotnet:main Jul 31, 2024
@dotnet-policy-service dotnet-policy-service bot added this to the 9.0-rc1 milestone Jul 31, 2024
@stephentoub stephentoub deleted the tweakbase64url branch July 31, 2024 20:04
@stephentoub
Copy link
Member Author

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants