A CLI tool for encrypting text using the Caesar Cipher, written in Go.
The Caesar Cipher is a fundamental cryptographic technique in which letters within a word undergo precise shifts forward or backward by a specified amount, resulting in the creation of a new word with altered letter positions. It proves particularly valuable for safeguarding uncomplicated passwords.
Important
You need the Go compiler installed to compile the script.
go fmt ./...
go build -o .\bin\ ./...
Note
You can batch execute those commands using make (you need make installed)
make
Say, we decide to encrypt the word "password" forward by eight shifts, we simply just pass the word and the shift number as arguments:
.\bin\caesar-cipher -e password 8
- Original:
p
a
s
s
w
o
r
d
- Shifted (by 8):
x
i
a
a
e
w
z
l
The -e
flag writes the result to a text file which is stored in a directory named "exported".