def decrypter(Fname): tools.empty_folder('files') tools.empty_folder('./key_pem') list_directory = tools.list_dir('key') filename = './key/' + list_directory[0] in_f = filename out_f = "./key_pem/" + Fname +".pem" in_img = cv2.imread(in_f) steg = Steganography(in_img) key_1 = steg.decode_binary() secret_information = Algo1(key_1, Fname) list_information = secret_information.split(':::::') key_1_1 = list_information[0] key_1_2 = list_information[1] key_2 = list_information[2] key_3 = list_information[3] key_4 = list_information[4] nonce12 = list_information[5] nonce13 = list_information[6] files = sorted(tools.list_dir('./encrypted/' + Fname + '/files')) for index in range(0,len(files)): if index%4 == 0: Also1_RSA(files[index],key_1_1,key_1_2, Fname) elif index%4 == 1: Also2_TrippleDES(files[index],key_2,nonce12, Fname) elif index%4 == 2: Algo3(files[index],key_3,nonce12, Fname) else: Algo4(files[index],key_4,nonce13, Fname)