Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.09 KB

README.md

File metadata and controls

35 lines (24 loc) · 1.09 KB

Caesar Cipher

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.

Compiling

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

Usage

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

Result

  • 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".