Skip to content

Latest commit

Β 

History

History
98 lines (71 loc) Β· 1.85 KB

File metadata and controls

98 lines (71 loc) Β· 1.85 KB

πŸ—„οΈ File Manager with Encryption / Decryption

A command-line tool that allows you to create, read, edit, delete, and list files β€” along with encrypting and decrypting them using an extended Caesar cipher.
Built entirely in C++ using only standard libraries.


πŸš€ Features

πŸ“ File Management

  • Create new text files
  • Read file contents
  • Append text to existing files
  • Delete files
  • List files (Windows uses dir, Linux uses ls)

πŸ” Encryption & Decryption

  • Extended Caesar Cipher implementation
  • Key-based dynamic shifting
  • Supports:
    • Lowercase letters
    • Uppercase letters
    • Digits
    • Printable ASCII characters (33–126)
  • Whitespace remains untouched
  • Wrap-around logic for every character range

πŸ› οΈ Tech Stack

  • C++
  • Standard Library (iostream, fstream, string)

No frameworks or external dependencies.


πŸ“¦ How It Works

1. File Operations Menu

Users can:

  • Create File
  • Read File
  • Edit File
  • Delete File
  • List Files

2. Encryption / Decryption

The shift value is derived from the key:

Character handling:

  • Alphabet β†’ Rotated within alphabet
  • Numbers β†’ Rotated within 0–9
  • Symbols β†’ Rotated within ASCII 33–126
  • Whitespace β†’ Preserved
  • Byte-by-byte processing

πŸ“₯ How to Run

Clone the repository

git clone https://github.com/<your-username>/<your-repo>.git

Compile

g++ File.cpp -o filemanager

Run

./filemanager

πŸ“Œ Example Usage

Encrypt

Input  : input.txt
Output : encrypted.txt
Key    : mykey123

Decrypt

Use the same key to restore original contents.

Project Structure

File.cpp      β†’ Source code
README.md     β†’ Documentation