code: def generate_token(self, *args):
          
          concatenated_str = self.encode_data_items(*args)
          token = self.encrypt_string(concatenated_str)
          return token
docs: Convert a list of integers or strings, specified by ``*args``, into an encrypted, timestamped, and signed token.
  
          Note: strings may not contain any ``'|'`` characters, nor start with a ``'~'`` character
          as these are used as separators and integer indicators for encoding.
  
          Example:
  
          ::
  
              # Combine User ID with last 8 bytes of their password
              # to invalidate tokens when passwords change.
              user_id = user.id
              password_ends_with = user.password[-8:0]
              token = token_manager.generate_token(user_id, password_ends_with)