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

Speed up secure compare #142

Merged
merged 1 commit into from
Mar 28, 2019
Merged

Conversation

bdewater
Copy link
Collaborator

Hex encoding is base 16 which makes the original input twice as big. We don't need to encode the SHA256 output bytes and the shorter output means we spend less time in SecureCompare.compare

Same as rails/rails#35556

Hex encoding is base 16 which makes the original input twice as big. We don't need to encode the SHA256 output bytes and the shorter output means we spend less time in `SecureCompare.compare`
@grzuy
Copy link
Contributor

grzuy commented Mar 28, 2019

Nice, thank you!

@grzuy grzuy merged commit 974bb67 into cedarcode:master Mar 28, 2019
@bdewater bdewater deleted the faster-securecompare branch March 29, 2019 15:55
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

2 participants