Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

DES Programming Assignment - C + + ( no built - in functions allowed, everything must be hard - coded ) . Provide the full

DES Programming Assignment - C++(no built-in functions allowed, everything must be hard-coded). Provide the full program including Initial permutation,16 rounds of permutation and substitution, and Final permutation. Example is provided in the pictures.
Let the user choose encryption or decryption.
For encryption, let user input the key in Hexadecimal number, the plain text in Hexadecimal number, output the ciphertext (in hexadecimal numbers).
For decryption, let user input the key in Hexadecimal number, the ciphertext (in hexadecimal numbers), output the decrypted message (Hexadecimal number).An Example of DES Encryption
Here is an example of encryption using the DES. Suppose we encrypt the (hex-
adecimal) plaintext
0123456789ABCDEF
using the (hexadecimal) key
133457799BBCDFF1.
The key, in binary, without parity-check bits, is
00010010011010010101101111001001101101111011011111111000.
Applying IP, we obtain L0 and R0(in binary):
L0=11001100000000001100110011111111
L1=R0=11110000101010101111000010101010
The 16 rounds of encryption are then performed, as indicated.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Design a training session to maximize learning. page 296

Answered: 1 week ago

Question

Design a cross-cultural preparation program. page 300

Answered: 1 week ago