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
- Host: GitHub
- URL: https://github.com/mikomikotaishi/caesar-cipher
- Owner: mikomikotaishi
- Created: 2024-01-09T10:44:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-30T04:30:10.000Z (over 1 year ago)
- Last Synced: 2025-02-03T21:34:45.736Z (over 1 year ago)
- Topics: caesar-cipher, cpp, decryption, encryption, encryption-decryption, vigenere-cipher
- Language: C++
- Homepage:
- Size: 119 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.