Feistel Cipher

March 5, 2017 | Author: Pranav Doshi | Category: N/A
Share Embed Donate


Short Description

Download Feistel Cipher...

Description

FEISTEL CIPHER import java.io.*; import java.util.*; class feistel { public static void main(String args[]) throws Exception { int a[]=new int[20]; int left[]=new int[10]; int right[]=new int[10]; int key[]=new int[10]; int temp[]=new int[10]; int m[]=new int[10]; int i,k; Scanner sc=new Scanner(System.in); BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter length of string:"); int n=Integer.parseInt(br.readLine()); System.out.println("Enter plaintext:"); for(i=0;i
View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF