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.
Related Online Codes:
Comments
![]() | bipin gupta on 2009-07-09 10:02:32 wrote, sale kute tera code nahi chal raha hai tik kar ke de |
![]() | meerim aytmanbetova on 2009-12-18 18:47:47 wrote, thank you.. |
![]() | cherly flar on 2010-07-20 11:04:20 wrote, nice one |
![]() | fakhar mehmood on 2010-10-25 23:21:12 wrote, i am going to try it lets see |
![]() | hou houda on 2010-12-24 12:34:29 wrote, a koi sa sert SKT_SDES |
![]() | hou houda on 2010-12-24 12:36:16 wrote, # if( args.length != 2) |
![]() | vijay rana on 2011-03-10 08:17: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?? |



