mess = raw_input("What would you like to hash?\n") start = time.clock() md5.init_mess(mess) out_put = md5.hex_digest() print out_put end = time.clock() print('--------------------------MD5 end--------------------------\n') print('Cost ' + str(end - start) + 's\n') costdic[choose] = end - start elif choose == 7: print('--------------------------RC4--------------------------\n') mode = raw_input("1 Encrypt or 2 Decode \n") if mode == '1': start = time.clock() message = RC4.get_message() key = RC4.get_key() box = RC4.init_box(key) RC4.ex_encrypt(message, box, mode) end = time.clock() elif mode == '2': message = RC4.get_message() key = RC4.get_key() box = RC4.init_box(key) RC4.ex_encrypt(message, box, mode) print('--------------------------RC4 end--------------------------\n') print('Cost ' + str(end - start) + 's\n') costdic[choose] = end - start elif choose == 8: print('--------------------------A5--------------------------\n')