https://github.com/devsdenepal/prodigy_cs_01
https://github.com/devsdenepal/prodigy_cs_01
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/devsdenepal/prodigy_cs_01
- Owner: devsdenepal
- Created: 2024-06-23T04:52:21.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-23T07:28:56.000Z (about 2 years ago)
- Last Synced: 2024-06-24T06:37:03.180Z (about 2 years ago)
- Language: Python
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PRODIGY_CS_01
This script allows you to encrypt or decrypt a text using a Caesar cipher. You can provide input either via command-line arguments or interactively.
Features
- En/Decrypt text with a specified letter shift
- Command-line and interactive modes
Requirements
Python 3.x
Usage
Command-Line Mode
You can run the script directly from the command line by providing the necessary arguments.
python script.py --mode --text --shift
-
--mode: Specify the mode,efor encrypt anddfor decrypt. -
--text: The text to be encrypted or decrypted. -
--shift: The letter shift for the encryption or decryption.
Example:
python script.py --mode e --text "hello" --shift 3