Skip to content

Latest commit

 

History

History
40 lines (37 loc) · 724 Bytes

File metadata and controls

40 lines (37 loc) · 724 Bytes

caesar-code.py

Caesar code (Caesar Cipher) encoder, and decoder, written in Python

Usage

Installation

  • Clone this repository
git clone https://github.com/piciakk/caesar-code.py
  • Go to the directory, you just cloned
cd caesar-code.py

Decode

  • Run the decoder script
python decoder.py
  • Enter a key
  • Enter a text
  • Done

Encode

  • Run the encoder script
python encoder.py
  • Enter a key
  • Enter a text
  • Done

Using as library

import decoder
import encoder

decode.decodeText(text.lower(), key) # text needs to be in lowercase
# returns decoded text
encode.encodeText(text.lower(), key) # text needs to be in lowercase
# returns encoded text