Changed the max length for new token, so it can be used with 32 bit keys.