Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Caesar Cipher Command-Line Tool

Description

This is a command-line tool for encrypting and decrypting text using the Caesar cipher. The tool supports both encryption with a given shift key and brute-force decryption.

Features

  • Encrypt or decrypt text using a shift key
  • Perform brute-force decryption by trying all possible shifts
  • Accept input as text or from a file

Installation

Ensure you have Python installed on your system.

Clone the repository or download the files:

 git clone <repository-url>
 cd <repository-folder>

Usage

Run the script using Python:

python caesar.py [OPTION]... [FILE or TEXT]...

Options

  • --key <int>: Specify the shift value for encryption/decryption
  • --bruteforce: Perform brute-force decryption by trying all possible shifts

Examples

Encrypt a text file with a shift of 3:

python caesar.py --key 3 input.txt

Decrypt a text using brute force:

python caesar.py --bruteforce "Khoor Zruog"

Encrypt direct text input with a shift of 5:

python caesar.py --key 3 "Hello World"

Files

  • caesar.py: Main script handling argument parsing and processing
  • methods.py: Contains functions for Caesar cipher encryption and brute-force decryption

Dependencies

This script relies on Python's standard libraries and requires no additional dependencies.

License

This project is licensed under the MIT License.

About

A command Line Python script for Caesar cipher

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages