An open API service indexing awesome lists of open source software.

https://github.com/mikomikotaishi/caesar-cipher

Program to demonstrate the Caesar cipher
https://github.com/mikomikotaishi/caesar-cipher

caesar-cipher cpp decryption encryption encryption-decryption vigenere-cipher

Last synced: over 1 year ago
JSON representation

Program to demonstrate the Caesar cipher

Awesome Lists containing this project

README

          

# Caesar Cipher (C++)

## Usage:
```caesar```

```caesar <-h/-help/h/help>```

```caesar <-f/-file/f/file> ```

If no argument is given, the program will prompt the user for text.
If the flag `-f` and a file name is given, the program will read the text from the file.

To output the help message, provide either `-h`, `-help`, `h`, `help` as a flag.

The conversion argument can be:

for Caesar encryption: `-c` `-caesar` `c` `caesar`

for Vigenere encryption: `-v` `-vigenere` `v` `vigenere`

for Caesar decryption: `-d` `-decrypt` `d` `decrypt`

For Caesar encryption, the key must be an integer.
For Vigenere encryption, the key must be a string of alphabetic characters.

For Caesar decryption, to show all results provide either `-a`, `-all`, `a` or `all` as a flag.

Otherwise, to not show all results, do not provide any flags.

The program will then carry out the conversion and output the result.