コード例 #1
0
def generate_request(ticket, session_key, message):
    encrypted_message=encrypt_func(session_key,message)
    final_request="{}\n{}".format(ticket,encrypted_message)
    return final_request
コード例 #2
0
def generate_login_message(username, serverIP,serverPort, password):
    serverinfo="{}\n{}".format(serverIP,serverPort)
    encrypted_message= encrypt_func( password, serverinfo)
    return "{}\n{}".format(username,encrypted_message)