Inspiration
In today's world when Messaging is used as a mode of communication, Its really necessary that our message is secured and only the person who is sending the message and the person who is receiving the message can only read the message. So to come up we have created the project of Text Encryption and Decryption to protect the message using encryption.
What it does
The Sender who wants to send the message has to open the encrypt tab of our website and writes his/her message correctly with the user email address which generated a request which is send to servlet. The servlet has the algorithm which we have written for huffman encoding and converts the message to binary format and also sends a email of the binary encoded string to the receiver. After the reciever recieves the email he has to copy and paste the binary string to the decrypt text tab and click on get message to read the message that is send by the user. Only those who have access to the website can decode the message and it cannot be read by any machine or human other than our website.
How we built it
For building the Frontend we have used Bootstrap and SCSS. While for the Backend we have used the Java Servlet which is a java library that supports web frameworks. For encryption and decryption of the message we have used Huffman Algorithm but while implementing we saw that this algorithm only encrypts the letters and not the complete sentence and also the spaces are not counted so we have customized the algorithm and now it uses the dataset to encrypt the message.
Challenges we ran into
As previously mentioned that Huffman algorithm is designed to encode the letters only and return the binary format of those encoded letters, example :- for a input "aabba" it returns "a:001" , "b:1001" , "c:1010". We have used our four to five hours to solve the problem so that it encrypt the complete sentence and finally after continuous efforts we are able to encode the complete message and append a string for the encoded letters binary format. Again we faced an issue that the algorithm not accepting the white spaces and to overcome this we have used " | " operator for the white spaces.
Accomplishments that we're proud of
In the course of this Hackathon, We managed to code and implement sucessfully some languages - Java and Javascript with HTML and CSS. We used the data structures like Heap, Hashmap to store the datasets and successfully map the key value pairs. We were able to successfully implement and get the positive results in all these languages.
What we learned
We learned new methods of coding and some of the data structures like heap and hashmap. We also get a clear idea of how the java can be used with other languages like javascript and html. We have learned how to setup Glassfish server in Netbeans IDE.
What's next for Text Encryption and Dencryption
We hope to perfect our code so that it could be used in real life implementation for sending the message securely. And use some of the well known alogrithms like RSA in future.

Log in or sign up for Devpost to join the conversation.