Project for encryption and decryption using 4 different ciphers
- Caesar
- Adfgvx
- Keyword
- Atbash
By using mod 27 not mod 26 - added extra character - space (" ")
https://en.wikipedia.org/wiki/Caesar_cipher
The cipher is based on the 6 letters ADFGVX. In the following example the alphabet is coded with the Dutch codeword 'nachtbommenwerper'. This results in the alphabet: NACHTBOMEWRPDFGIJKLQSUVXYZ. This creates the table below with the letters ADFGVX as column headings and row identifiers
This cipher is using also extra password
https://en.wikipedia.org/wiki/ADFGVX_cipher
A keyword cipher is a form of monoalphabetic substitution. A keyword is used as the key, and it determines the letter matchings of the cipher alphabet to the plain alphabet. Repeats of letters in the word are removed, then the cipher alphabet is generated with the keyword matching to A,B,C etc. until the keyword is used up, whereupon the rest of the ciphertext letters are used in alphabetical order, excluding those already used in the key.
https://en.wikipedia.org/wiki/Keyword_cipher
Cipher that is using flipped alphabet
https://en.wikipedia.org/wiki/Atbash
On top of each encryption OTP can be used where you have an option as well to send message in 5 character blocks
This OTP will as well generate a strong key that corresponds to each message and every time is random.
http://users.telenet.be/d.rijmenants/en/onetimepad.htm
Test folder contains raw code for testing the values - is not included in the main code anywhere