0% found this document useful (0 votes)
41 views

Image Security 3 Des Project Code

This document discusses an image encryption and decryption system using triple DES. It defines a function to display images and a function to encrypt files with triple DES. The document then states that the full project code is longer and involves many steps for encryption and decryption of images. It encourages the reader to email the author for the full project code, report and presentation, or for help with other projects.

Uploaded by

naveen
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views

Image Security 3 Des Project Code

This document discusses an image encryption and decryption system using triple DES. It defines a function to display images and a function to encrypt files with triple DES. The document then states that the full project code is longer and involves many steps for encryption and decryption of images. It encourages the reader to email the author for the full project code, report and presentation, or for help with other projects.

Uploaded by

naveen
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

4/30/2021 temp-161975426794118782

IMAGE SECURITY SYSTEM FOR ARMY, POLICE & SECURE COMMUNICATION

IMAGE ENCRYPTION & DECRYPTION USING TRIPLE DES

LOAD LIBRARIES

In [1]: %pylab inline


import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import io
!pip install pyDes
from pyDes import *

Populating the interactive namespace from numpy and matplotlib


Collecting pyDes
Downloading https://files.pythonhosted.org/packages/92/5e/0075a35ea5d307a18
2b0963900298b209ea2f363ccdd5a27e8cb04c58410/pyDes-2.0.1.tar.gz
Building wheels for collected packages: pyDes
Building wheel for pyDes (setup.py) ... done
Created wheel for pyDes: filename=pyDes-2.0.1-py2.py3-none-any.whl size=954
8 sha256=0c0e84d0cbb3ca775dcc5cd1e16b3b8392b29ed5ac71063e5b9a304f853f3bdc
Stored in directory: /root/.cache/pip/wheels/8d/ff/d6/b38861c6a8fb5807fcd62
e520d4d018caca96c8c3c645e47ec
Successfully built pyDes
Installing collected packages: pyDes
Successfully installed pyDes-2.0.1

DEFINE FUNCTION

In [2]: # Function to Display Image


def imgdis(path):
"""
Function to display an image.
Parameter : Path of image file
"""
img = mpimg.imread(path)
imgplot = plt.imshow(img)
plt.show()

ENCRYPTION USING TRIPLE DES

https://htmtopdf.herokuapp.com/ipynbviewer/temp/aa7ac12f322daa7c3ea8087f8203d2d5/IMAGE_ENRYPTION_USING_3_DES.html?t=16197542696… 1/2
4/30/2021 temp-161975426794118782

In [3]: # Function to Encrypt an File with Triple DES


def encrypt(key, path, output = 'Encrypted'):
"""
Function to Encrypt an File with Triple DES

Parameters : path, key, output;

Key : Takes a Key for the Encryption Process.


Path : Takes Absolute or Relative Path of File as Input.
Output : Takes Absolute or Relative Path of File as Output.

Returns : An Encrypted File.


"""

In [ ]:

In [ ]:

In [ ]:

In [ ]:

WAIT !!!

Project Code is longer it involves many step for Encryption and Decryption for Image.

It's Top Class Projects.

Mail me at [email protected] for Full Project Code with


Project Report and PPT

Mail me for any kind of Help in Projects.

Mail me at [email protected] Now for


Projects
In [ ]:

https://htmtopdf.herokuapp.com/ipynbviewer/temp/aa7ac12f322daa7c3ea8087f8203d2d5/IMAGE_ENRYPTION_USING_3_DES.html?t=16197542696… 2/2

You might also like