Closed mohanr closed 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 ?
yNZEZnb9oDTmEvJpLDqxhw9MQeZ
Plain simple, no. 😉 You can reduce the number, you will reduce the output.
Hashids hashids = new Hashids("this is my salt"); String id = hashids.encodeHex("586e8cc62663421eadf9d4efa2bd19f4");
This gives
yNZEZnb9oDTmEvJpLDqxhw9MQeZ
. Can it be shorter at all ?