2609 Nis
2609 Nis
Title of Micro project: Implement modifier Caesar’s cipher with shift of any key
Academic Year: 2023-2024 Program Code: AN
Course: Network & Information Security Course Code: 22620
Submitted by
1
Institute Code: 0141
CERTIFICATE
Certified that this micro project report titled “Implement modifier Caesar’s cipher
with shift of any key” is the bonafide work of Mr. Sarang Jagdale Roll no 2609 of
third year diploma in Artificial intelligence and machine learning for the
course: Network & Information Security code 22620 during the academic year
2023-2024, who carried out the micro project work under my supervision.
2
ACKNOWLEDGEMENT
We would like to express our special thanks of gratitude to our teachers, who gave us
opportunity to do this wonderful micro project on the topic “ Implement modifier
Caesar’s cipher with shift of any key ” which also helped us in doing a lot of Research
and we came to know about so many new things we all really thankful to all who help us doing
this micro project.
Secondly we would also like to thank our parents and friends who helped us a lot in finalizing
this project within the limited time frame.
Name Signature
Sarang Jagdale
3
ALL INDIA SHRI SHIVAJI MEMORIAL SOCIETY’S POLYTECHNIC, PUNE -1
VISION:
MISSION:
M1: Empower the students by inculcating various technical and soft skills.
M2: Upgrade teaching-learning process and industry-institute interaction
continuously
Vision
Mission
M1:To fulfill industrial requirement in the area of artificial intelligence and machine
Learning.
M3: To inculcate ethical values, soft skills and leadership skills in students for
7
INDEX
1. Title 1
2. Certificate 2
3. Acknowledgement 3
4. Annexure I 9
5. Annexure II 12
6. Annexure III 21
7. Annexure IV 23
8. Log Book 24
8
Annexure-I
Micro-Project Proposal
Title of Micro-Project: Implement modifier Caesar’s cipher with shift of any key
Benefits: -
Understood the concepts of Encryption & Decryption.
Easy to memorize the cipher, so you can easily expand.
One of the simplest and easiest encryption methods.
9
4.0 Action Plan
Sr. Details of Activity Planned Planned Name of Responsible
No. Start date Finish date Team Members
1. Introduction to Micro-project: Study for 07/08/23 11/08/23 Sarang Jagdale
selecting Micro project topic
10
5.0 Resources Required
Sr. Name of Specifications Qty. Remarks
No. Resources/material
1. Computer System Laptop i5 11th gen, RAM –7GB 1
2. Operating System Windows 11 1
3. Printer - -
4. Internet/Websites https://github.com/topics/memorygame?l=java
Ms.R.G. Waghmare
(To be approved by the Concerned Teacher)
11
Annexure-II
Micro-Project Report
Title of Micro-Project: Implement modifier Caesar’s cipher with shift of any key
1.0 Rationale:
Caesar Cipher is named after Julius Caesar and is one of the simplest and weakest encryption
algorithms. Therefore it is used only in parts of other complex encryption algorithms making the
Cipher Text harder to decode.
Caesar cipher or Shift Cipher is a Substitution cipher algorithm in which each letter of the plain text
(message) is substituted with another letter. In this algorithm, cach letter of the Plaintext is shifted a
number of positions based the Key provided. 2.0 Aim/Benefits of the Micro-Project:
Aim: -
To understand the concept of Android.
To identify different types of methods used in Android.
To understand benefits and future scope of the Android.
Benefits: -
Understood the concepts of Encryption & Decryption.
Easy to memorize the cipher, so you can easily expand.
One of the simplest and easiest encryption methods.
12
5.0 Actual Methodology Followed
Sr. No./ Date Work Done
Hour No.
1. 11/08/23 Finalize the Topic
2. 14/08/23 Distribution of Work
3. 21/08/23 Distribution of Topic
4. 25/08/23 Collecting Images/Information
5. 29/08/23 Starting animation
6. 01/09/23 Completing animation
7. 05/09/23 Creating a Word Document
8. 11/09/23 Inserting information
9. 15/09/23 Arranged the Information
10. 20/09/23 Proofread the Information
11. 22/09/23 Editing the Word Document
12. 26/09/23 Review from the Teacher
13. 29/09/23 Editing the Project Report as per Teacher’s suggestion
14. 03/10/23 Proofread and Finalize the Report
15. 13/10/23 Finalize the report
16. 13/10/23 Final submission of the Report
13
7.0 Code of Micro-Project:
import java.util.*;
public class Caesar Cipher Program {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
String k="y";
while(k.equals("y")||k.equals("Y"))
{
String plaintext="";
int shift=0;
System.out.println("1. Encrypt Message \n2. Decrpyt Message ");
System.out.println("\nEnter your Choice:");
int ch=sc.nextInt();
System.out.println(" Enter Message: ");
Plaintext = sc.next();
System.out.println(" Enter the value by which cach character in the plaintext message gets shifted: ");
shift = sc.nextInt();
switch(ch)
case 1:
String ciphertext = encrypt(plaintext, shift);
System.out.println(" ciphertext:" + ciphertext);
break;
case 2:
String ptext = decrypt(plaintext,shift);
System.out.println("plaintext:" + ptext);
break;
default:
System.out.println("Option not Selected.. Please Select an option: ");
}
System.out.println("Do you want to continue? [y/n]: ");
K = sc.next();
}
}
private static String decrypt(String ciphertext.int shift)
{
String decrypt Message = “ ”;
for(int i=0;i<ciphertext.length();i++)
{
char alphabet = ciphertext.charAt(i);
if(alphabet >='a' && alphabet <= ‘z’)
{
alphabet =(char) (alphabet - shift);
if (alphabet<'a') {
alphabet =(char) (alphabet-‘a’+‘z’+1);
14
}
decryptMessage = decryptMessage + alphabet;
}
else if(alphabet >= ‘A’ && alphabet ‘Z’)
{
alphabet (char) (alphabet – shift);
if (alphabet <'A')
alphabet = (char) (alphabet--‘A’+‘Z’+1);
}
decryptMessage = decryptMessage + alphabet;
}
else
{
decryptMessage = decryptMessage + alphabet;
}
}
retum decryptMessage;
}
private static String encrypt(String plaintext.int shift)
{
char alphabet;
String ciphertext";
for(int i=0; i < plaintext.length();i++)
{
alphabet = plaintext.charAt(i);
if(alphabet >='a' && alphabet <= ‘z’)
{
alphabet = (char) (alphabet+shift);
if(alphabet > ‘z’){
alphabet = (char) (alphabet+ ‘a’+ ‘z’-1);
}
ciphertext = ciphertext + alphabet;
}
else if(alphabet >=‘A’ && alphabet <= ‘Z’){
alphabet = (char) (alphabet + shift);
if(alphabet > 'Z') {
alphabet = (char) (alphabet+ ‘A’ - ‘Z’ - 1);
}
Ciphertext = ciphertext + alphabet;
}
else
{
ciphertext = ciphertext + alphabet;
}
}
return ciphertext;
}
}
15
Screenshots of the output
16
8.0 Skill Developed/Learning Outcomes of this Micro-Project:
During the course of developing this micro-project we learnt many practical applications
of Cryptography concepts in theory and practical.
We learnt to Implement Modifier Caesar's Cipher with shift of any key.
We also learnt how to develop, compile and execute code for cryptographic techniques .
Applications of this Micro project:
Used to achieve Integrity.
Ms.R.G. Waghmare
17
Annexure - III
Rubric for Assessment of Micro Project
18
Precautions and conclusion. but precautions and precautions and
Conclusions clarity is not there conclusion. conclusion.
omitted, some in presentation. Sufficient Enough tables,
details are wrong. But not enough graphic charts and
graphic description sketches
description
7. Presentation of the Major information Includes major Includes major Well organized,
Micro-Project is not included, information but information but Includes major
information is not not well not well information,
well organized. organized not organized not presented well.
presented well. presented well.
19
Annexure IV
20
Log Book of the Student (Hourly Work Report)
Academic Year: 2023-2024
Name of Student: Sarang Jagdale
Title of the Project: Implement modifier Caesar’s cipher with shift of any key
Course: Network & Information Security Course Code: 22620
Semester: AN6I
Sr. No. Date Time Work Done
Ms.R.G. Waghmare
21
Rubrics Used for Evaluation of a Micro Project
Rubric
Characteristics to be assessed Marks Obtained out of 10
No.
1 Relevance to course
2 Literature review/information collection
3 Completion of target as per project proposal
4 Analysis of data and representation
5 Quality of prototype/model
6 Report Preparation
Total Out of (60)
Process and Product Assessment (A): Total Out of
(06)
B) Individual Presentation/Viva(B)
22
Evaluation Sheet for the Micro Project
Academic Year: 2023-2024 Name of Faculty: Ms.R.G.Waghmare
Course: Network & Information Security
Course Code: 22620
Semester: AN6I
Title of the Project: Implement modifier Caesar’s cipher with shift of any key
23