S-DES Encryption and Decryption

Wokey, here it is in pictorial form. Sorry it’s handwritten. This is the detailed version, to get the bigger flowchart refer to my notes 😉

Let’s start with a 10-bit key : 1010000010.

The goal is to encrypt an 8-bit plaintext : 0100 0001

We start by key generation, to generate the two  8-bit subkeys (K1 and K2):

keygeneration

Next : encryption process – first loop

encryption1

Then the next loop:

encryption2

We ended with 0001 0101 as ciphertext, we should be able to decrypt it back to 0100 0001.  Remember, during decryption we use K2 first then K1.

decryption

 

Second loop of decryption process:

decryption2

Done !

Advertisements

8 thoughts on “S-DES Encryption and Decryption

  1. Pong2 says:

    I vaguely remember how to calculate this stuff, prolly suck at it now. lg mikir how did i pass this subject. ooo ya …. dosennya pak revi and he gave me a P -_-

  2. Sanny says:

    Waduh… ga mudeng, Miss… Hehe…

    Btw, tukeran link blog ya Miss… Saya pindahan nih… ntar blog nya miss Sandy saya link ya… =)

  3. Nancy says:

    There is some thing wrong in round 2 encryption because the final result of lift and right will be replaced you forget it right?? You forget to swap the final result of right and left before you make ip inverse

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s