yomorun / hashids-java

Hashids algorithm v1.0.0 implementation in Java
http://hashids.org
MIT License
1.02k stars 156 forks source link

hashids not support number > 9007199254740992L #35

Closed bichtv closed 7 years ago

bichtv commented 7 years ago

hashids not support number > 9007199254740992L. can you update source to support number > 9007199254740992L ?

0x3333 commented 7 years ago

This is a limitation of the algorithm. All hashids have it. We can't do it.

arcticicestudio commented 7 years ago

This limit provides more than 9 quadrillion (!) possible numbers! I think even YouTube hasn't reached this amount of video ID's if they'd use this algorithm :anguished:

@bichtv Maybe you should describe exactly what's your actual problem with this limit. There are workarounds to get above this limit like for example using a array with multiple long numbers which can be multiplied when they get decoded.

bichtv commented 7 years ago

thanks for the help, I have solved my problem with hashid

fanweixiao commented 7 years ago

congratulations @bichtv , and, it's hashids :smile: