https://github.com/ir33k/brutus
Brutus the lib and CLI for Caesar cipher with famous ROT13
https://github.com/ir33k/brutus
Last synced: 3 months ago
JSON representation
Brutus the lib and CLI for Caesar cipher with famous ROT13
- Host: GitHub
- URL: https://github.com/ir33k/brutus
- Owner: ir33k
- Created: 2024-10-29T16:00:27.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-10-30T16:18:22.000Z (7 months ago)
- Last Synced: 2025-01-08T16:30:01.677Z (5 months ago)
- Language: C
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Brutus [1] the lib and CLI for Caesar cipher [2] with famous ROT13 [3].
[1] https://en.wikipedia.org/wiki/Marcus_Junius_Brutus
[2] https://en.wikipedia.org/wiki/Caesar_cipher
[3] https://en.wikipedia.org/wiki/ROT13Library documentation is inside brutus.h.
Build:
$ ./build # Builds brutus.o lib and brutus CLI program
ROT13:
$ echo "Caesar cipher" | ./brutus # Encode
Pnrfne pvcure$ echo "Pnrfne pvcure" | ./brutus # Decode
Caesar cipherCustom shift:
$ echo "Caesar cipher" | ./brutus -s 8 # Encode
Kimaiz kqxpmz$ echo "Kimaiz kqxpmz" | ./brutus -s -8 # Decode
Caesar cipherBy default Brutus shifts using ASCII lower and upper case characters.
You can define custom set of characters called Cipher.$ echo "123ab" | ./brutus -c "123456" -s 32 # Encode
345ab$ echo "345ab" | ./brutus -c "123456" -s -32 # Decode
123ab