What it does- This technique is very simple. Every alphabet in English signifies a series of ".",",","/","-". We just encrypt the message from message to symbols and decrypt from symbols to English.
How I built it-
Encryption Step1: Given a string, atfirst we extract each letter from the word and match with the Morse Code dictionary, then we consider the code corresponding the letter. Step2: Next step is to store the code into a variable. And we have to follow that one space should be maintained between every Morse code. Step3: Two spaces should be maintained in between every word.
Decryption Step1: First we add a space at the end of the string. Step2: Now we traverse each letter of the message until space is not encountered. Step3: When we get space then check with Morse Code Dictionary and store in a variable. Step4: When get 2 consecutive spaces we will add another space to our variable containing the decoded string. Step5: When get last space of the message that means this is the last letter of the Morse Code Generator.
Log in or sign up for Devpost to join the conversation.