Assignment_Sarinchandevid.ipynb - Colab
Assignment_Sarinchandevid.ipynb - Colab
ipynb - Colab
uploaded = files.upload()
for fn in uploaded.keys():
print('User uploaded file "{name}" with length {length} bytes'.format(
name=fn, length=len(uploaded[fn])))
# You can now access the uploaded files using the file names as keys in the `uploaded` dictionary.
# For example:
# image1 = uploaded['image1.jpg']
# image2 = uploaded['image2.png']
Choose Files No file chosen Upload widget is only available when the cell has been executed in the current browser session. Please rerun this cell to
enable.
Saving photo_2024-11-05_23-44-25.jpg to photo_2024-11-05_23-44-25 (7).jpg
Saving photo_2024-11-05_23-44-26.jpg to photo_2024-11-05_23-44-26 (10).jpg
User uploaded file "photo_2024-11-05_23-44-25 (7).jpg" with length 310040 bytes
User uploaded file "photo 2024-11-05 23-44-26 (10).jpg" with length 105480 bytes
# prompt: make he size of those two images smaller and then show the two images photo_2024-11-05_23-44-25 (7).jpg and photo_2024-11-05_23-44-2
# Assuming you have uploaded the images and they are in the `uploaded` dictionary
image1_data = uploaded['photo_2024-11-05_23-44-25 (7).jpg']
image2_data = uploaded['photo_2024-11-05_23-44-26 (10).jpg']
# prompt: use the small size images of photo_2024-11-05_23-44-25 (7).jpg as key image to encrypt photo_2024-11-05_23-44-26 (10).jpg . Use XO
https://colab.research.google.com/drive/1eCHI8sVvCFY8T6MmseKPbzcMhSyBFMpI#scrollTo=Ltju9qeBTEw4&printMode=true 1/3
11/6/24, 12:15 AM Assignment_Sarinchandevid.ipynb - Colab
# Assuming you have the encrypted image and the key image loaded as 'encrypted_image' and 'image2'
https://colab.research.google.com/drive/1eCHI8sVvCFY8T6MmseKPbzcMhSyBFMpI#scrollTo=Ltju9qeBTEw4&printMode=true 2/3
11/6/24, 12:15 AM Assignment_Sarinchandevid.ipynb - Colab
https://colab.research.google.com/drive/1eCHI8sVvCFY8T6MmseKPbzcMhSyBFMpI#scrollTo=Ltju9qeBTEw4&printMode=true 3/3