Library and CLI for cryptography techniques.
A command line interface is available for cipher
, through which data or files can be encrypted/decrypted through the command line or terminal. Following methods can be used to create an executable.
- Makefile
make cipher
- Shell
g++ -o cipher main.cpp lib/*.cpp
cipher
can also be used as a C++ library, by including the cipher.hpp
header file available in lib
directory.
#include "lib/cipher.hpp"
All classes are derived from Cipher
base class. Each class has two methods: encrypt and decrypt.
ASCIICode
AtbashCipher
BinaryCode
CaesarCipher
HexCode
MorseCode
NATOPhoneticCode
OctalCode
VigenereCipher
Tests are created for each file under lib/cipher.hpp
header file.
make test