Encoding 64 bit number with hashid library

72 Views Asked by At

previously we use to generate 32 bit number for ids now we have started generating 64 bit number as ids. The problem we are facing is we used hashId library to encode the number but we are not able to encode the 64-bit number with this library it gives empty string if we encode 64-bit. Any walk around this? I cannot switch to other library as i still have 32-bit ids present. Changing library would create a lot of trouble.

64 bit ids:- 191051377965797390,191059128930537487
Library is:- https://hashids.org/javascript/

Is it possible to encode 64bit using this library?

0

There are 0 best solutions below