![]() ![]() Encryption plainAlphabet ← "ABCDEFGHIJKLMNOPRSTUVWXYZ"ĬipherAlphabet1 ← "CIPHERSABDFGJKLMNOTUVWXYZ"ĬipherAlphabet2 ← "CRYPTOABDEFGHIJKLMNSUVWXZ" The message has also been converted to upper case and had all non-letter characters removed. No programming logic is included for the missing letter. The trick to this algorithm is how to use the co-ordinates of the letters. ![]() The letter in the top right is the first letter of the cipher text digraph, the letter in the bottom left is the second letter in the cipher text digraph.Ĭontinuing this way encrypts the remainder of the message as,Īs with many of the grid based ciphers, we will be using a string to store our 'grids' and using our noggin to map the positions of characters into grid co-ordinates when we need to work with them. The pink squares are the corners of a rectangle formed by the 4 squares. The yellow squares are the letters from the plain text. The second letter is found in the top right grid. The first letter of the digraph is found in the top left grid.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |