QR Code Generator

This project started as a challenge to implement the entire code required to encode any string into a QR Code, turns out, it's kind of hard.

I got around to implement the first few steps of encoding the string acording to the size and padding in the specifications. What got me was the error correction step of the algorithm that needed to be applied to the encoded string of bits. Just look at the math, it involves coding polynomial division. I repeat, coding polynomial division.

I know that I could potentially work on that and get it done, I just don't have the interest in me to spend those hours so I gave up and started using this library to create the QR Code image: Yeqown's go-qrcode. I did however got to learn a bunch of new stuffs including a better understanding of unicode, endianess and bitmasks.

The colors are from the palette I will be using for everything under the Odin Software umbrella. Since I made a function to delete all the images from the server every 5 minutes, this could potentially be used by anybody and it would not incur much cost on storage, only in traffic.

QR Code

Thanks for reading! These are the links:

Link: QR Code Generator

Code: Source Code