mirror of
https://github.com/hastagAB/Awesome-Python-Scripts.git
synced 2024-11-23 20:11:07 +00:00
.. | ||
caesar.py | ||
README.md |
Simple caesar Cipher [En,De]coder
A simple implementation of a CLI tool to work with caesar ciphers. The default implementation is ROT-13, but can be adjusted for any offset. Works on files and string arguments passed via CLI.
python3 caesar.py
usage: caesar.py [-h] [-d] [-o OFFSET] (-f FILE | -s STRING)
caesar.py: error: one of the arguments -f/--file -s/--string is required
python3 caesar.py -s "have you tried turning it off and on again?"
unir lbh gevrq gheavat vg bss naq ba ntnva?
python3 caesar.py -d -s "unir lbh gevrq gheavat vg bss naq ba ntnva?"
have you tried turning it off and on again?
python3 caesar.py -s "have you tried turning it off and on again?" -o -4
dwra ukq pneaz pqnjejc ep kbb wjz kj wcwej?