# Implementation of DES Algorithm C Program

By | June 10, 2016

## Simple C Program For DES Algorithm in Cryptography

Learn how to implement DES algorithm in C programming language. The DES encryption algorithm is an implementation of Fiestel Cipher. There are two different methods enlisted here for DES algorithm implementation in C programming.

#### What is DES Encryption Algorithm?

The DES algorithm is also sometimes referred to as Data Encryption Algorithm (DEA). The DES encryption algorithm is a symmetric key algorithm for the encryption of data. The block size is of 64 bits.

The DES is an archetypal block cipher which takes a fixed length string of plain-text bits. There’s another improvised version of this algorithm which is Triple DES Algorithm.

The simplified DES (S-DES) is a modified version of the data encryption standard DES algorithm. Another modified version of the DES algorithm is famously known as Triple DES. The key generator method creates 16 48-bit keys.

Note: This implementation of simplified data encryption standard in C programming language is compiled with GNU GCC compiler on Linux Ubuntu 14.04 operating system.

#### Method 2: C Program To Implement DES Encryption Algorithm

If you have any doubts or compilation errors in this C program to implement DES encryption algorithm, let us know about it in the comment section below. Find more about DES algorithm on Wikipedia.

## 9 thoughts on “Implementation of DES Algorithm C Program”

1. Vishal Awasthi

The DES Algorithm is really difficult to understand.

2. Rishi Kadam

What are the different types of algorithms which can be an alternative to DES Encryption algorithm?

1. Sachin Bhoi

There are many alternatives to the DES algorithm such as:
– BlowFish Algorithm
64 bits
– TwoFish Algorithm
256 bits
– RSA Algorithm
– AES (Advanced Encryption Standard) –
192, 256 and 128 bits
– Triple DES
68 bits, 112 bits

3. Rajnish Tuli

What about the MD5 Encryption algorithm? Is it not worth it?

4. Sudhakar Shetty

This is such a simple DES algorithm. Thanks for this one. Amazing it is.

5. Santosh Kumar

There is another very good algorithm which has been developed to improve the DES algorithm and it is IDEA which stands for International Date Encryption System.

6. Sweta

Where is the output of the second method?

7. Siddharth Maurya

MD5 is not encryption, it is a hashing function.

8. Ashwini

HI,
can you suggest how to execute above code.
I see you wrote 3 program.