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

duplicates of hashes #57

Closed
vakorovin opened this issue Jan 21, 2016 · 4 comments
Closed

duplicates of hashes #57

vakorovin opened this issue Jan 21, 2016 · 4 comments

Comments

@vakorovin
Copy link

Hello! I use Hashids 1.0.6 and received duplicates of hashes.

$hashids = new Hashids ('fabrika', 8);
echo $hashids->encode(53); // 3o1pkgy5
echo $hashids->encode(97); // 3o1pkgy5

@jd327
Copy link
Collaborator

jd327 commented Jan 21, 2016

Hi @vakorovin,

The first encode produces 3o1pkgy5, while the second produces 3o1pKgy5.
Notice that K is capitalized.

@jd327 jd327 closed this as completed Jan 21, 2016
@vakorovin
Copy link
Author

Oh! Thank you!

@PurpleBabar
Copy link

Had the same type of issue, helped me a lot. 👍 This link to understand how it could conflict when using unique in sql on a field that is not case sensitive
Hope it will help someone else 👍

EDIT: keywords BINARY and utf8_unicode_cs might help too...

@NobodyButMe-Haiya
Copy link

i hit on this bug .. QZ and qZ are the same with in mac. When i uploaded my application to server something strange happening.. image not found since my path /images/qz/zzzzz .

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

No branches or pull requests

4 participants