View on GitHub

Kryptos

C program which utilizes dynamic memory allocation and sorting for string manipulation to encrypt or decrypt user-entered text.

Kryptos

This project was named after the famous sculpture containing unencrypted texts located outside the CIA HQ at Langley. This is a C program that utilizes dynamic memory allocation and sorting for string manipulation to encrypt or decrypt user entered text in 10 of the most famous ciphers used throughout human history.

Running the program

  1. Install any IDE with a suitable C compiler.
  2. Create a new project, copy the Source.c code and paste it in a .c file.
  3. Remove the first line: #define _CRT_SECURE_NO_WARNINGS from the code
  4. Run the program.

Note: Only users running this program on Visual Studio on the MSVC compiler must ignore step 3 above.

OR

For OS X and Linux:

  1. Download the Source.c file and remove the first line: #define _CRT_SECURE_NO_WARNINGS from the code.
  2. Then, open the folder containing the Source.c file in the terminal.
  3. Type clang Source.c -o Source and press enter in the terminal. (If compiler is gcc, then replace clang with gcc)
  4. Finally, type ./Source and press enter to run the executable.

List of ciphers available

Click to read more about these ciphers!

  1. Atbash
  2. Scytale
  3. Caesar shift
  4. Affine
  5. Vigenere
  6. Bacon
  7. Playfair
  8. Bifid
  9. ADFGX
  10. Hill

Contributing

Pull requests are welcome for adding more ciphers or fixing exisiting issues.

License

MIT