Inspiration

We studied ciphers a lot in our Cybersecurity class but we wanted to try coding our own morse code encoder and decoder.

What it does

It asks the user whether they want to encrypt or decrypt and then takes in the phrase. Then it translates it and returns the message to be printed.

How we built it

We used open-source code from GeeksforGeeks for our main class but changed some of the code by creating private instance variables for the arrays for the English and morse code languages, using return statements rather than printlns, and building our own runner class with a scanner. The open-source code can be seen here: link

Challenges we ran into

We ran into challenges when trying to use the open-source code because it did not use return statements. Thus we had to figure out where to place break statements and create a variable output to add Strings onto.

Accomplishments that we're proud of

We're proud of coding the runner class completely ourselves because we did not use any open-source code for it.

What we learned

We learned about how encoding and decoding morse code works much better when using String arrays as opposed to just a long String like we did when coding other ciphers.

What's next for Morse Code Cipher

If we had more time, we would like to add a way to use more symbols besides letters and numbers.

Share this project:

Updates