Skip to content

Latest commit

 

History

History
18 lines (17 loc) · 899 Bytes

File metadata and controls

18 lines (17 loc) · 899 Bytes

Python Text Encryptor & Decryptor

A simple, command-line based encryption and decryption tool built with Python.

Features

  • Encrypt: Converts plain text into cipher text using a randomly generated character key.
  • Decrypt: Reverses the cipher text back to the original message.
  • CLI Interface: Simple text-based menu for easy interaction.
  • Modular Code: Refactored into separate functions for clear logic

Usage

  1. Run the script using Python: python main.py
  2. Follow the on-screen prompts:
    • Press E to encrypt a message.
    • Press D to decrypt a message.
    • Press Q to safely exit the program.

Planned Updates

  • Implement Dictionary data structures to improve character lookup performance from O(N) to O(1).
  • Add functionality to export and import the encryption key (e.g., to a .txt or .json file) so messages can be decrypted across different sessions.