Encryption protocol using 4 LFSR (Linear Feedback Shift Register).
Download the project then run the Makefile (src/Makefile
).
mingw-make
mingw32-make
mingw64-make
...
Check your c++ compiler doc if it is not mingw...
Launch the executable E0.exe
(src/E0.exe
).
C:.
│ .gitignore
│ LICENSE
│ README.md
│
└───src
E0.cpp
E0.exe
E0.h
E0.o
main.cpp
main.o
Makefile
Download the E0.cpp
and E0.h
files.
#include <string>
#include "E0.h"
string key = "100111";
string message = "11111110110100110111111110011001";
E0 e0 = E0(key, message);
e0.decrypt(); //abcd
e0.setMessage("abcd");
e0.encrypt(); //11111110110100110111111110011001
e0.setKey("111001");
e0.encrypt(); //10000110100011100010010001011011
e0.setMessage("10000110100011100010010001011011");
e0.decrypt(); //abcd