An open API service indexing awesome lists of open source software.

https://github.com/junaidrahim/des

Cryptography Project - Implementation of DES Algorithm
https://github.com/junaidrahim/des

Last synced: 21 days ago
JSON representation

Cryptography Project - Implementation of DES Algorithm

Awesome Lists containing this project

README

          

# DES Algorithm

Implementation of DES algorithm in C++.

**What is DES Algorithm?**

Data Encryption Standard (DES) is a block cipher algorithm that takes plain text in blocks of 64 bits and converts them to ciphertext using keys of 48 bits. It is a symmetric key algorithm, which means that the same key is used for encrypting and decrypting ​data. Encryption and decryption using the DES algorithm.

## Table of Contents

- [DES Algorithm](#des-algorithm)
- [Table of Contents](#table-of-contents)
- [Installation](#installation)
- [Usage](#usage)
- [Group Details](#group-details)

## Installation

1. Clone this repository

```shell
git clone https://github.com/junaidrahim/DES.git
cd DES
git checkout main
```

2. Building the binaries

```sh
mkdir build
cd build
cmake ..
make
```

This will build the `DES` binary in `build` directory.

## Usage

```sh
$ ./DES --help
-v, --version Display program version info and exit.
-f, --file TEXT Takes a file as an input.
-o, --output TEXT Writes the output to the specified file.
-e, --encrypt-mode Runs in encrypt mode.
-d, --decrypt-mode Runs in decrypt mode.
--help, -h show help
```

Encrypt Text
```bash
./DES -f=../input.txt -o=./output.txt -e
```

Decrypt Text
```bash
./DES -f=./output.txt -o=./decrypted.txt -d
```

## Group Details
1905642 - Sounak Mukherjee

1905658 - Aditya Meharia

1905667 - Sagnik Chaudhuri

1905674 - Debmalya Chatterjee

1905725 - Ujjwal Singh Shekhawat

1905726 - Rohan Kumar

1905828 - Pratyush Khuntia

1905831 - Junaid Rahim

Submitted to Prof. Chittaranjan Pradhan