Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Aim: To write a Java program to implement Data Encryption Standard (DES) (only Encryption and key generator) with comment The main parts of the algorithm
Aim: To write a Java program to implement Data Encryption Standard (DES) (only Encryption and key generator) with comment
The main parts of the algorithm are as follows:
Fractioning of the text into 64-bit blocks Initial permutation of blocks
Breakdown of the blocks into two parts:
left and right, named L and R Permutation and substitution steps repeated 16 times
Re-joining of the left and right parts then inverse initial permutation
ALGORITHM:
STEP-1: Read the 64-bit plain text.
STEP-2: Split it into two 32-bit blocks and store it in two different arrays.
STEP-3: Perform XOR operation between these two arrays.
STEP-4: The output obtained is stored as the second 32-bit sequence and the original second 32-bit sequence forms the first part.
STEP-5: Thus the encrypted 64-bit cipher text is obtained in this way. Repeat the same process for the remaining plain text characters
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started