It's a C implementation of Data Encryption Standard algorithm and Triple Data Encryption Standard algorithm.
This program use ASCII encoding for password and file character. See ASCII table. Don't use space in your password.
Makefile setup library in your computer if you have debian system. See Lib chapter.
Compile using :
$ make
$ ./sdes [ALGORITHM] [ACTION] [INPUT FILE] [OUTPUT FILE]
ALGORITHM | Description |
---|---|
-des |
Data Standard algorithm |
-3des |
Triple Data Standard algorithm |
ACTION | Description |
---|---|
-e |
Encrypt |
-d |
Decrypt |
Verify if your decrypted file is like your text file :
$ diff test.txt test.dec
make
command create a library.
Make sure you have compile. See Compile section.
Install library using :
$ ./install.sh
It's work only on Debian system.
To use the library in your own project, use :
#include "sdes.h"
And use option -lsdes
when you compile.
Delete library using :
$ ./delete.sh
It's work only on Debian system.
make
gcc
Under MIT License. See details.
The main source code is onlocated at : https://github.com/Sholde/des