Simplified DES (SDES) Algorithm - Online Code

Description

This is a Java code for Encryption, Decryption and Key generation in Simplified DES (SDES) algorithm used in Cryptography and Network Security. Sample output: >SKT_SDES 0000011111 01000111 Key K1: 01101011 Key K2: 10101010 Encrypted Message: 01101001 Decrypted Message: 01000111

Source Code

class SDES

{

  public int K1, K2;



  public static final int P10[] = { 3, 5, 2, 7, 4, 10, 1, 9, 8, 6};

  public static final int P10max = 10;



  public static final int P8[] = { 6, 3, 7, 4, 8, 5, 10, 9};

  publ
... (login or register to view full code)

To view full code, you must Login or Register, its FREE.

Hey, registering yourself just takes less than a minute and opens up a whole new GetGyan experience.




Comments

bipin gupta on 2009-07-09 20:32:32 wrote,

sale kute tera code nahi chal raha hai tik kar ke de

meerim aytmanbetova on 2009-12-19 06:17:47 wrote,

thank you..

cherly flar on 2010-07-20 21:34:20 wrote,

nice one

fakhar mehmood on 2010-10-26 09:51:12 wrote,

i am going to try it lets see

hou houda on 2010-12-25 00:04:29 wrote,

a koi sa sert SKT_SDES

hou houda on 2010-12-25 00:06:16 wrote,

# if( args.length != 2)
#
# {
#
System.err.println( "Usage: SKT_SDES key(10 bit) plaintext(8 bit)");

System.exit(1);

}
i mean that i can't understand it

vijay rana on 2011-03-10 19:47:58 wrote,

Sir, I think that if I use it in my Cryptography project that would be copy-paste and sweat from me at all. Won't it??

dhara gajera on 2013-03-13 16:58:18 wrote,

tx