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

feat(permanentid): replace sha256 by md5(30)+sha1(30) #77

Merged
merged 1 commit into from
Jan 20, 2022

Conversation

jdevost
Copy link
Contributor

@jdevost jdevost commented Jan 20, 2022

The limit for permanentid in the index is actually 60 characters. hashlib.sha256() is generating a 64-character hash.

Rather than simply truncating it, I am proposing the default algorithm to generate permanentid in the index: md5[:30]+sha1[:30]

@jdevost jdevost requested review from olamothe and francistb and removed request for olamothe January 20, 2022 02:25
Copy link
Collaborator

@louis-bompart louis-bompart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@louis-bompart louis-bompart changed the title fix: permanentid - replace hash-sha256 by md5+sha1 feat(permanentid): replace sha256 by md5(30)+sha1(30) Jan 20, 2022
@louis-bompart louis-bompart merged commit ff0cfe0 into main Jan 20, 2022
@louis-bompart louis-bompart deleted the generate-permanent-id branch December 1, 2022 16:30
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.

4 participants