speps / go-hashids

Go (golang) implementation of http://www.hashids.org
MIT License
1.32k stars 109 forks source link

allow numbers only alphabet #56

Open nosovk opened 3 years ago

nosovk commented 3 years ago

Current implementation fails if we use numeric only alphabet. But from an algorithm perspective it should be working.

nataneb32 commented 2 years ago

A numeric only alphabet has only 10 characters. This would make either the hash long or weak.

Ask on the hashids js side.

nosovk commented 2 years ago

Long hash is ok. It shouldn't fail.