Skip to main content
  1. My Blog Posts and Stories/

Making my first tool

··310 words·2 mins

Boredom is the root of all creativity #

A few days passed and all I have is a repository of jokes. Starring in the mirror, I think it is about time I did more than just having a database of jokes. Time for my website to actually be useful!

How do I go about doing that? Since I have just learnt Cryptography in school, why not give it a go and make my own AES tool to encrypt and decrypt AES-CBC? If you do not know what is AES, you can take a look here

Sounds like a wonderful idea doesn’t it? On 1 hand, it will improve my skills in coding with respect to AES-CBC. On the other hand, it will also help me add more content to the website.

Seems like a win-win situation to me ¯\(ツ)/¯ So here I go right?

So everything is smooth sailing right? #

Well not exactly….. Apparently, there are a lot of errors related to AES that I have to take care of.

Here are some of them

  1. Empty String (If the string is empty what do I do?)
  2. IV length (AES only accepts 16 byte IVs)
  3. Key length (AES only accepts 32 byte Keys)
  4. Padding (If the message is not a multiple of 32 bytes, “pad” the message to make it a multiple)

A lot of if statements later. I somehow manage to make the tool? (Although I did not help the user to pad the key and prompt the user to key in the form again when there were any issues.) Welp a win is a win and I will take it (Celebrate small victories)

Future edit (2022) #

Future me here from 2022. Due to the time that the tool takes to run, it allowed others to perform a DDoS attack on the server…..

Sadly, because of that, the function was removed.