hashids / hashids.github.io

This is the old Hashids website. It is no longer maintained and has migrated over to Sqids.
https://sqids.org
206 stars 34 forks source link

Negative integers not supported? #21

Closed anentropic closed 9 years ago

anentropic commented 9 years ago

I tried to encode a negative integer with the Python version and get an empty string back.

I assume for the intended use case (database primary key ids) this doesn't matter but maybe you could mention it on the homepage somewhere - I didn't see any reference to only positive ints being supported.

jd327 commented 9 years ago

Good point, thank you for bringing it up. Update the site to mention positive integers in 2 places:

  1. Features
  2. What not to do