Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

36 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Duo Stumper: Caesar Cipher πŸ”

The main examen of the first year at Epitech, intensive 4-hour coding challenge completed in pairs. The objective was to develop a command-line utility implementing the classic Caesar Cipher algorithm, capable of processing data from both strings and files, with specific constraints on file permissions.


πŸš€ Features

  • Dual Input Modes: Accepts input directly as a string or reads from a specified file.
  • Caesar Cipher Algorithm: Shifts characters along the alphabet based on a dynamic integer key.
  • Secure Output: Automatically generates a secure, read-only output file named crypt containing the result.
  • Robust Error Handling: Validates command-line arguments, checks file existence, and handles invalid key formats safely.
  • Epitech Coding Style: Built in strict compliance with the school's programming standards.

πŸ› οΈ Tech Stack & Constraints

  • Language: C
  • Timeframe: 4 Hours
  • Concepts: Stream manipulation, UNIX file permissions, ASCII operations, and defensive programming.

πŸ’» Usage

Compilation

make

Encrypt a file

./cesar -f input.txt 3
# Processes 'input.txt' and creates the read-only file 'crypt'

Encrypt a string

./cesar -s hello 3
# Processes 'hello' and creates the read-only file 'crypt'

About

An Epitech Duo Stumper is a short, intensive 4 hours coding examen completed in pairs. The goal is to quickly develop a functional command-line program based on strict specifications while respecting the Epitech coding style. It focuses heavily on teamwork, agile problem-solving, and efficient time management under tight deadlines.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages