I m using crypt() in PHP to generate a unique token string. My problem is that some tokens generated include periods (.) at the end of the token, and this is confusing for users that need to copy and paste it elsewhere... some see it as the end of a sentence rather than part of the token.
除非我犯错,否则我只能取代加密后的时间,因为它不再是独特的识别标志。
Is there a way to restrict the characters that are output by crypt()?