Welcome to the Morse Code Converter! This repository contains a Python application that converts text to Morse code and vice versa. It's a simple and effective tool for anyone interested in learning or using Morse code.
- Convert plain text to Morse code
- Convert Morse code back to plain text
- Supports letters (A-Z), numbers (0-9), and basic punctuation
- User-friendly command-line interface
To get started, clone the repository to your local machine:
git clone https://github.com/bassslapper3390/morsecode.git
Navigate to the project directory:
cd morsecode
Make sure you have Python installed on your machine. This application is compatible with Python 3.x.
Run the main Python script to start the converter:
python morsecode.py
Follow the on-screen prompts to convert text to Morse code or Morse code to text.
Input: Hello World
Output: .... . .-.. .-.. --- / .-- --- .-. .-.. -..
![Text to Morse Code](https://private-user-images.githubusercontent.com/75876257/332121758-e4ae7be7-ebcc-4428-b2a8-9f1e791815c3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODY3NzcsIm5iZiI6MTcyNTI4NjQ3NywicGF0aCI6Ii83NTg3NjI1Ny8zMzIxMjE3NTgtZTRhZTdiZTctZWJjYy00NDI4LWIyYTgtOWYxZTc5MTgxNWMzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MTQzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRmMjRkYTliZGFhMDVlMjQyYWRjMGIwZGMxYTVmMWY2Y2IwMTMyZjZmMjkxMjJiMDNmYWNiM2JjOWVjNDM0NDkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Jh815F7u6L6b9lbat3mY660aAS_6XFvzAUacEIwsREw)
Input: .... . .-.. .-.. --- / .-- --- .-. .-.. -..
Output: HELLO WORLD
![Morse Code to Text](https://private-user-images.githubusercontent.com/75876257/332123221-b4a12dc6-51dc-4368-a42b-f791d598c981.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODY3NzcsIm5iZiI6MTcyNTI4NjQ3NywicGF0aCI6Ii83NTg3NjI1Ny8zMzIxMjMyMjEtYjRhMTJkYzYtNTFkYy00MzY4LWE0MmItZjc5MWQ1OThjOTgxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MTQzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY3YjM2OTBkZGM3MWU3YWNkNGVjYzg1NzYzZmQwZDlkOGEzNTQ2MjY5MWI0OTQxZWQ0NWM2Y2M0OTZjYWI0MzAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.gwd2xz1Ie-ezE7e6oAI2BR-dqUFAODyks05xRqmgRNE)
Input: HELLO WORLD
Key: 3
Output: KHOOR ZRUOG
![Encrypt the Text](https://private-user-images.githubusercontent.com/75876257/332122920-2c0939b4-c7ad-4d4b-ada0-2557df68ad8c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODY3NzcsIm5iZiI6MTcyNTI4NjQ3NywicGF0aCI6Ii83NTg3NjI1Ny8zMzIxMjI5MjAtMmMwOTM5YjQtYzdhZC00ZDRiLWFkYTAtMjU1N2RmNjhhZDhjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MTQzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNkMWU5MTY4Yzk3MTM0MjJlMDM1NjgxNDdmOGZhNGFiNmZlMDkwNmJkOTgxNDZkNmM3ZmZmOGYwZTIxMmIyYWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ZPSCcXZgjOv0WH5o7EoriQK2LiYDCvF5LOzRSYm6iVE)
Input: KHOOR ZRUOG
Key: 3
Output: HELLO WORLD
![Decrypt the Text](https://private-user-images.githubusercontent.com/75876257/332124053-42838bd9-93f1-4a26-9d95-6b3f9f07ea59.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODY3NzcsIm5iZiI6MTcyNTI4NjQ3NywicGF0aCI6Ii83NTg3NjI1Ny8zMzIxMjQwNTMtNDI4MzhiZDktOTNmMS00YTI2LTlkOTUtNmIzZjlmMDdlYTU5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MTQzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWViYjFlMTEzOWM3Njg4MjA3N2E3NTBkODRhZmZkNzFlNDMyYTRjYTI1MjE4MWU4MTUxMDE0ZDc0ZWE1YmZhNzYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.t85Dn4-YMaaRZWORb7v6bQN2CyYRC5Lp6w3-N6pbkp8)
Contributions are welcome! Feel free to open an issue or submit a pull request. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License. See the LICENSE file for more details.
If you have any questions or suggestions, feel free to reach out!