id generation - snowflake: "left shift" made that result exceeds long.max value

((timestamp - 1288834974657) << 32) I included some more bits information, for example, total 32 bits after timestamp information needs, then the timestamp needs to be left shift 32 bits, such that the result exceeds long.max value. The result shown a negative value something like -7187691577906700288, it was wrong.Hope I described my question correctly. Please help......Read more

ID Generation from 16 digit number

Are there any possible simple methods/ways to generate/encrypt a 16 digit alpha-number into a 6 to 8 digit alpha-numeric code. There will be millions of possible combinations of the 16 digit number, so the encrypted 6-8 alpha-numeric number has to be unique. Thanks for your suggestions in advance....Read more