Skip to content

A CLI tool for generating encrypted texts based on the caesar cipher algorithm

License

Notifications You must be signed in to change notification settings

dev-xero/caesar-cipher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A CLI tool for generating encrypted texts based on the caesar cipher algorithm

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published