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

Lab Assignment 2

The lab assignment involves downloading and installing Cryptool, followed by various encryption and decryption exercises using symmetric algorithms such as DES, AES, IDEA, and Triple DES. Additionally, it includes using a hashing program, HashCalc, to verify data integrity by calculating hash values before and after modifying a text file. The assignment emphasizes understanding encryption techniques and the importance of data integrity verification.

Uploaded by

mehakdeep0799
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Lab Assignment 2

The lab assignment involves downloading and installing Cryptool, followed by various encryption and decryption exercises using symmetric algorithms such as DES, AES, IDEA, and Triple DES. Additionally, it includes using a hashing program, HashCalc, to verify data integrity by calculating hash values before and after modifying a text file. The assignment emphasizes understanding encryption techniques and the importance of data integrity verification.

Uploaded by

mehakdeep0799
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Lab Assignment 2

Exercise 1

Download and install Cryptool using the following link:


https://www.cryptool.org/en/ct1/downloads/

Follow the steps and display the screenshots with short descriptions.
The text message throughout this lab shall comprise the following text:

We’ve trained a model called ChatGPT which interacts in a conversational


way. The dialogue format makes it possible for ChatGPT to answer follow up
questions, admit its mistakes, challenge incorrect premises, and reject
inappropriate requests.

1. Download and install CrypTool attached with lab

2. Encrypt and decrypt the text message with a symmetric encryption


algorithm namely DES, AES, IDEA, and Triple DES.

3. Encrypt the text message with the symmetric encryption algorithm


Vigenère, and e-mail it to one of the members of your group. Supply
him/her with the necessary information, so he/she can decrypt it.

4. Encrypt the text message with DES and decrypt it with triple DES, and
opposite, encrypt the text message with triple DES and decrypt it with
DES.

5. Encrypt and decrypt the text message with the Caesar algorithm

Page 1 of 4
Exercise 2

Objectives
Use a hashing program to verify the integrity of data.

Background / Scenario
It is important to understand when data has been corrupted or it has been
tampered with. A hashing program can be used to verify if data has
changed, or if it has remained the same. A hashing program performs a
hash function on data or a file, which returns a (usually much shorter) value.
There are many different hash functions, some very simple and some very
complex. When the same hash is performed on the same data, the value
that is returned is always the same. If any change is performed on the data,
the hash value returned will be different.

Step 1: Create a Text file


a. Search your computer for the Notepad program and open it.
b. Type some text in the program.

c. Choose File > Save.


d. Navigate to Desktop.
e. Type Hash in the File name: field, and click Save.
Page 2 of 4
Step 2: Install HashCalc

Download HashCalc 2.02 attached with lab


a. Run the setup.exe file inside.

b. Follow the installation wizard to install HashCalc.


c. Click Finish on the last screen and close the README file if it opened. You may read the file if you wish.
d. HashCalc is now installed and running.

Page 3 of 4
Step 3: Calculate a hash of the Hash.txt file
a. Set the following items in HashCalc:
1) Data Format: File.
2) Data: Click the … button next to the Data field, navigate to the Desktop and choose the Hash.txt
file.
3) Uncheck HMAC.
4) Uncheck all hash types except MD5.
b. Click the Calculate
button. What is the
value next to MD5?

Step 4: Make a change to the Hash.txt file


a. Navigate to the Desktop and open the Hash.txt file.
b. Make a minor change to the text, such as deleting a letter, or adding a space or period.
c. Click File > Save, and close Notepad.

Step 5: Calculate a new hash of the Hash.txt file


a. Click the Calculate button in
HashCalc again. What is the value
next to MD5?

Is the value different from the value recorded in Step 3?

b. Place a check mark next to all of the hash types.


c. Click Calculate.
d. Notice that many of the hash types create a hash of a different length. Why?

Page 4 of 4

You might also like