NIS 2page Final MP
NIS 2page Final MP
1. Rationale
2. Aim of Micro-Project
4. Literature Review
5. Methodology
6. Recourses Used
9. Applications
Caesar Cipher using Java
1.0 Rationale
The Caesar Cipher algorithm for cryptography is one of the oldest algorithms. This is because in this
algorithm each character of a message is always replaced by the same fixed character that has been
predetermined. To improve the algorithm and enhance its security feature, a few changes can be
added.
Caesar protected his confidential information by encrypting it using a cipher. Caesar’s Cipher
shifts each letter by a number of letters. If the shift takes you past the end of the alphabet,
just rotate back to the front of the alphabet.
1. Cryptography:-
Cryptography is concerned with the design of cryptosystems, while cryptanalysis studies the
breaking of cryptosystems (Henk & Van, 2000).The branch of science which deals with secure
communication on presence of intruders is cryptography(Henk & Van, 2000).
It is one of the major areas of study in information security. Others include, but not limited to,
steganography and network security.
Cryptography is defined as the science and art of encrypting and decrypting data using some
special measures.
2. Encryption:-
Encryption is the method of disguising plaintext in such a way as to hide its substance while
decryption (which is the opposite of encryption) is unhiding the substance by changing the cipher
text to its original plaintext (Rhodes-Ousley, 2013).
Cryptanalysis, on the other hand, is the branch of science which deals with breaking the codes and
extracting the hidden meaning, while the whole system which comprises both cryptography and
cryptanalysis is called cryptosystem (Paar & Pelzl, 2010).
5.0 Methodology:
Traverse the given text one character at a time.
For each character, transform the given character as per the rule, depending on whether we’re
encrypting or decrypting the text.
Encryption code:-
import java.util.Scanner;
int key;
char alphabet;
plaintext = sc.nextLine();
key = sc.nextInt();
{ alphabet = plaintext.charAt(i);
encrypted_Message += alphabet;
encrypted_Message += alphabet;
else {
encrypted_Message += alphabet;
}
2.Decryption Code:-
import java.util.*;
int key;
char alphabet;
key = sc.nextInt();
decrypted_Message += alphabet;
decrypted_Message += alphabet;
}
else {
decrypted_Message += alphabet;
1. Encryption Outcome:-
2. Decryption Outcome:-
In this way we have implement program to encrypt text and decrypt text using substitution
technique like caeser cipher.
9.1 Application
a) Reduces human effort.
b) Provide more security.