Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 633 Bytes

File metadata and controls

24 lines (18 loc) · 633 Bytes

Caesar Cipher

A simple CLI implementing the Caesar cipher for the Norwegian alphabet (i.e. including the letters æ, ø, and å following z).

Quickstart

To build the binary, run:

go build -o caesar cmd/main.go

To use it natively, move it to a directory included in $PATH or extend $PATH to include this directory.

export PATH="$(pwd):$PATH"

Examples

# Input piped from STDIN, encrypted output to STDOUT
cat file.txt | caesar -e 5

# Specify input file to decrypt and output file
caesar -d -i encrypted.txt -o decrypted.txt 4