Imageio.imwrite(name, img1, format='PNG-FI') Img1 = numpy.array(img1).astype(numpy.uint16) Messagebox.showinfo('Finish!', 'Decryption Done succesfully!') ImgV = imageio.imread(os.path.join(folder, filename1), format='PNG-FI') Messagebox.showinfo('Error Occured', 'Error: Creating directory of decrypted data')įor filename1 in tqdm(os.listdir(folder)): Heres the code :įrom tkinter.filedialog import askopenfilename now I have image2 which is read from the encrypted video and if the keys are applied then it is giving a more encrypted image. let us say we have image1 which is encrypted and will be used to make the encrypted video when I am applying the key on this image I am getting back the original image. But when I am applying the same key on any image with which the video is made I am getting back the original image. Then I am reading the frames of the encrypted video again and when I am applying the decryption key I am not getting back the original image. Now I have extracted the frames from the video and encrypt each image individually and then combining the images to create a video. I am writing a script to encrypt and decrypt video using RSA algo in python.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |