Caesar
Rotate anything with the Caesar cipher using a single shift or a range of them.
Installation
- Download the release
- Install with go
go install github.com/0xalby/caesar@latest
git clone https://github.com/0xalby/caesar
cd caesar
go mod tidy
make build
Usage
From a file
caesar rotate -s -10,5 -i encrypted.txt
echo "tupjdjtn" | caesar rotate -s -1
caesar rotate -s 13
Help
Usage:
caesar [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
help Help about any command
rotate Rotate text using the Caesar Cipher
Flags:
-h, --help help for caesar
Use "caesar [command] --help" for more information about a command.
This rotates text by a single or a range of values using the Caesar Cipher.
Usage:
caesar rotate [flags]
Flags:
-h, --help Help for rotate
-i, --input string Input file (leave empty to use stdin)
-s, --shift ints Single shift or range of shifts for the Caesar Cipher (example 3 for a single shift or -10,3 for a range of shifts)
Motivation
Something simple for me to learn spf13/cobra.