yomorun / hashids-java

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

Human Readable UUID #71

Closed mohanr closed 4 years ago

mohanr commented 4 years ago

Hashids hashids = new Hashids("this is my salt"); String id = hashids.encodeHex("586e8cc62663421eadf9d4efa2bd19f4");

This gives yNZEZnb9oDTmEvJpLDqxhw9MQeZ. Can it be shorter at all ?

0x3333 commented 4 years ago

Plain simple, no. 😉 You can reduce the number, you will reduce the output.