WMS 2.1 20BCS5674
WMS 2.1 20BCS5674
Experiment 2.1
Student Name: Nishtha Sharma UID: 20BCS5674
Branch: BE-CSE Section/Group: 20BCS_WM_609 B
Semester: 5th Subject Name: Web and Mobile Security
Lab
Aim:
Write a program to generate message digest for the given message using
the SHA/MD5 algorithm and verify the integrity of message.
Objective:
Encrypt the plaintext string from user using SHA Algorithm.
Hardware/Software Requirements:
Windows 7 and Above.
Tools used:
1. Eclipse IDE
2. JDK (Java Development kit)
3. IntelliJ IDEA
Script/Code/Steps:
import java.util.Scanner; import
java.math.BigInteger; import
java.security.MessageDigest;
DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING
import java.security.NoSuchAlgorithmException;
Output Screenshots:
DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING
Learning Outcomes:
1. Learnt about the encryption techniques.
2. Learnt about hashing and its implementation.
3. Learnt how to implement hash function in Java.
4. Learnt how to implement MD5 Algorithm.
5. Learnt how to implement SHA Algorithm.