caesar

command module
v0.0.0-...-5d29da2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2025 License: MIT Imports: 7 Imported by: 0

README

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
  • Compile from source
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
From standard input
echo "tupjdjtn" | caesar rotate -s -1
From user input
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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL