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

added a from_string method to HumanHasher #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

percentcer
Copy link

This lets you make calls like:

>>> humanhash.from_string("humanhash")
'asparagus-oven-minnesota-hamper'

Which helped with some of my purposes (needing a human-readable tag for another human-readable string, but for them to be semantically unrelated)

This lets you make calls like:

>>> humanhash.from_string("humanhash")
'asparagus-oven-minnesota-hamper'
@blag
Copy link

blag commented Apr 11, 2017

Hi, sorry for digging this up after three years.

I'm the maintainer of the Python3 compatible fork on PyPI.

I'm curious: why did you pick DNS for the namespace? And uuid3 vs. uuid5?

@percentcer
Copy link
Author

Inexperience 😄 What's the correct namespace?

@blag
Copy link

blag commented Apr 13, 2017

No judgment - I don't know what a better option is, I just wanted to hear your reasoning behind it.

Nowadays I would probably shy away from uuid3 because MD5 is pretty broken, but uuid5 isn't much better because SHA-1 is also (more recently) broken. And uuid4 is right out because it's not repeatable. 😕 So I don't really know.

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