(DES)Data Encryption Standard:A block cipher processes the plaintextinput in fixed-sized blocks and produces ablock of cipher text of equal size for eachplaintext blockThe plaintext is 64 bits in length and the key(k) is 56 bits in length (16 rounds ofprocessing (16 sub keys (k (left shift to k1)k1…..k16 are generated for each roundbased on left shift)The plaintext block is divided into twohalves, LE0 and RE0. The two halves of thedata pass through 16 rounds of processingand then combine to produce the ciphertext block.A substitution is performed on the left halfof the data. This is done by applying around function F(left circular shift shufflesthe input block) to the right half of the dataand then taking the exclusive-OR (XOR) of
the output of that function and the left halfof the data.Permutation is performed that consists ofthe interchange of the two halves of thedata.
Implemtation of simple DES AlgorithmProgram:import java.security.*; // Java SecurityPackages There are three security-related packages in java 1. JCA/JCE(Java Cryptography Architecture & JavaCryptography Extensions) 2. JSSE( JavaSecure-Sockets Extension). 3. JAAS( JavaAuthentication & Authorization Service)import javax.crypto.*; // Provides theclasses and interfaces for cryptographicoperations. Operation includeencryption, key generation and keyagreement, and Message AuthenticationCode (MAC) generation.public class PrivateExample