lettymoon / caesar-cipher

Caesar cipher in Golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Caesar cipher in Golang


Languages

Language:Go 100.0%