A Python-based Morse Code Command Line Tool that allows you to convert text into International Morse Code and decode Morse code back into readable text. This project is designed as a learning lab to improve:
- Encoding & decoding logic
- Pattern recognition
- Handling symbol-based communication systems
- CLI tool structuring
It is especially useful for puzzle solving, CTF-style thinking, and foundational cybersecurity logic building.
Morse-Decoder-CLI-Lab/
│
├── morse_decoder.py # Main CLI application
└── README.md # Project documentation- Converts letters, numbers, and punctuation into International Morse Code
- Uses standard dot (
.) and dash (-) notation - Represents word gaps using
/
- Decodes space-separated Morse code
- Converts / back into spaces
- Ignores unsupported or invalid sequences safely
- Clean dictionary-based mapping
- Easy-to-read conversion logic
- Ideal for experimentation and extension
| Technology | Role |
|---|---|
| Python 3 | Core programming language |
| Dictionary Mapping | Morse ↔ Text conversion |
| CLI (Command Line Interface) | User interaction |
No external libraries are required.
Python 3.7+This tool uses only standard Python libraries.
git clone https://github.com/ShakalBhau0001/Morse-Decoder-CLI-Lab.gitcd Morse-Decoder-CLI-Labpython morse_decoder.pyAfter running the program, you will see:
🔤 International Morse Code 🔤
--------------------
1. Text → Morse
2. Morse → TextInput:
HELLO WORLDOutput:
.... . .-.. .-.. --- / .-- --- .-. .-.. -..Input:
.... . .-.. .-.. --- / .-- --- .-. .-.. -..Output:
HELLO WORLD- A dictionary maps characters to Morse symbols:
"A": ".-", "B": "-...", "C": "-.-."
- Input text is converted to uppercase
- Each character is replaced by its Morse equivalent
- Output is space-separated Morse code
- Morse input is split by spaces
- Reverse dictionary lookup converts Morse back to text
/is translated back into a space
- Morse input must be space-separated
- Continuous Morse without spacing is ambiguous
- This tool does not brute-force spacing
- Not intended for secure communication
- Auto-spacing / brute-force decoding
- Support for continuous Morse (no spaces)
- File-based input/output
- Morse signal visualization
- Integration with steganography tools
This repository focuses only on Morse code encoding & decoding as a logic-building CLI lab.
For a combined and advanced implementation involving:
- Image steganography
- Audio steganography
- Encrypted payload embedding
please refer to:
This project is intended for educational and learning purposes only.
Morse code is not encryption and should not be used for secure communication. The goal is to improve analytical thinking, decoding skills, and tool-building fundamentals.
Creator: Shakal Bhau
GitHub: ShakalBhau0001