Skip to content

lettymoon/caesar-cipher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Caesar Chiper in Golang

Go

Caesar cipher is one of the simplest and most widely known encryption techniques. It is a type of substitution cipher in which each letter in the plaintext is replaced by a letter some fixed number of positions down the alphabet.

How to use

go run caesar-cipher.go [options]

Options

-e (encrypt) encrypt the message
-d (decrypt) decrypt the message
-k (key) key that will be used to encrypt and decrypt the message, if not selected, key 13 will be used as default
-m (message) message that will be encrypted or decrypted

Example

go run caesar-cipher.go -e -k 5 -m potato

Key = 5

Message original = potato

Message encrypt = utyfyt

Releases

No releases published

Packages

No packages published

Languages