11th January is #LearnYourNameInMorseCodeDay.
I found this out as GCHQ tweeted the following today:
.-.. . .- .-. -. / -.– — ..- .-. / -. .- — . / .. -. / — — .-. … . / -.-. — -.. . 🧐
— GCHQ (@GCHQ) January 11, 2020
Which is Morse Code. I’ve never learned Morse Code, but wanted to know what GCHQ were tweeting about. I few solutions came to mind:
- Convert the morse manually
- Use an online tool to convert the Morse
- Build a Python tool to convert the Morse
As I have recently been getting to grips with ciphers in Python, and as I wanted a little challenge I went with option 3 and got Python to convert the Morse for me.
I found it easier to translate English to Morse as I hit a small snag with looking up a dictionary key by its value. Thankfully StackOverFlow had the answer.
The complete Python code is available on my GitHub here: https://github.com/geektechdude/Python_Encryption/blob/master/geektechstuff_morse_code.py