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

Upgrade hash to sha256. #126

Merged
merged 1 commit into from
Sep 2, 2022
Merged

Upgrade hash to sha256. #126

merged 1 commit into from
Sep 2, 2022

Conversation

jm2
Copy link
Contributor

@jm2 jm2 commented Sep 2, 2022

Use a stronger hash since md5 is generally discouraged at this point.

@yannh
Copy link
Owner

yannh commented Sep 2, 2022

Are you concerned about collisions? The hash here is not meant to be secure but just to ensure we don't have weird characters in the filename, and be reasonably fast... I guess it's still ok to use md5 for non-cryptographic purposes like here?

@jm2
Copy link
Contributor Author

jm2 commented Sep 2, 2022

Our import validation makes any use of crypto/md5 a bit painful regardless of the use case. That being said if you'd rather leave it as md5 here that's fine as we can work around it.

@yannh
Copy link
Owner

yannh commented Sep 2, 2022

Looks like sha256 is actually not significantly slower, so I guess why not 🤷‍♂️

@yannh yannh merged commit 5cbbd1a into yannh:master Sep 2, 2022
yannh pushed a commit that referenced this pull request Oct 16, 2022
yannh pushed a commit that referenced this pull request Oct 16, 2022
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.

2 participants