The Hardware Side of Cryptography

12 January 2008

Implementing Simplified DES using EEPROM

Filed under: encryption — Tags: , — edipermadi @ 7:35 am

Just another SDES stuffs. I ‘ve generated Simplified DES Encryption Lookup Table by mapping both of key and plain text input becoming cipher text output. Since Plaintext was 8 bit width and key was 10 bit width, so you will have 2^18 combinantion or 262144 exactly. I put key as leftmost input and plain text as rightmost input.

If you name key as k1:k10 and Plain text as p1:p8, you can name the this process as a function f(k1:k10,p1:p8). The same way as decryption, you can name it as g(k1:k10;c1:c8). Both of encryption and decryption are just lookup table. you can implement it using EEPROM for example. It is fast, cheap and easy to implement. Have a look at both two picture below, it describes you how this process works.

Encryption Mode
EEPROM SDES Encrypt

Decryption Mode

EEPROM SDES Decrypt

Click links below to download lookup Table:
Download Encryption Lookup Table
Download Decryption Lookup Table

Simplified DES Simulator

Filed under: encryption — Tags: , — edipermadi @ 7:31 am

Yet another stuff about Simplified DES, i’ve coded simple program to simulate Simplified DES. I released this program as freeware. You can redistribute it as much as you want, without altering the program. You can use the program for educational use, personal use, commercial use or whatever you want.

Yeah, i think it much better than scretching on bit mapping your paper. It drives you crazy. I hope this program simplifiy your job or your homework perhaps :) .

I’ve verified the program and found no error. If you found something funny, wrong, stupid and unusual, please mail me on edipermadi at gmail dot com.

But, i totally take no care about innacuracy, mistakes, or even damages caused by this program. So please take your own risk and have fun. If you download and use the program, means you are ready to take your own risk.

This is the screenshoot, i made it simple and visually understandable:

SDES Simulator ScreenShot

How To Use It:
- first, select working mode. Initially it set to encryption
- enter 10 bit key, use only “0″ and “1″.
- if you are going to encrypt, enter text into textbox labelled plaintext.
- if you are going to decrypt, enter cipher text into textbox labelled ciphertext.
- Have fun

Download Simulator:
SDES Simulator

Blog at WordPress.com.