Inspiration
Learning about encryption was what first got me into programming. I went to a workshop about HTML, and thought it would be cool to test an encryption method on a website. I implemented the algorithm in JavaScript to work with the website. I initially thought about simulating a more complex encryption method, but soon realized that trying to translate the code from C++ to JavaScript would be time-consuming, and went with a simple algorithm to make sure the project was finished on time.
What it does
It takes an input of a shift and message. It shifts each character of the string by the shift to output the ciphertext (or plaintext) for the length of the message.
How I built it
I initially wrote the code in C++, since that's the language I'm most proficient in, but then realized that it had to be written in JavaScript for it to be on the website.
Challenges I ran into
This was my first time programming in JavaScript, HTML, and CSS so learning a lot of new syntax and features of these languages was challenging under the time crunch.
Accomplishments that I'm proud of
I'm proud of going to my first hackathon and having code that does what it was supposed to do.
What I learned
I learnt about variables and strings in JavaScript, and how to use different tags in HTML.
What's next for Caesar Cipher
Simulating a Vigenère Cipher or an ADFGVX encryption, once I learn how to use arrays in JavaScript.


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