Limit hashid to 2 character hash

583 Views Asked by At

I am using the hashids library to generate a unique hash using 2 inputs. I know there is a way to add padding to extend the length of the hash. Is there a way to truncate or set a max length to the hashid constructor?

0

There are 0 best solutions below