Posts

Showing posts with the label catan

Brad's Weekend of Coding - Day 3 Summary

Image
I started Victoria day with a "long sleep in", by that I mean I didn't get up until about 10:00am. I then proceeded to spend most of the day tunnelling away at AES encryption in PHP. It was rather frustrating and not working quite the way I wanted. Several problems I ran into including: Not saving the Initialisation Vector (IV), which (upon encrypting) generates a random series of bytes. The idea of this is that if you encrypt the same phrase multiple times, each time you will get different crypted values.  The problem however is that if you don't somehow save / remember the (IV) it will not decrypt properly. Not saving the 'TAG'. I didn't even know what the 'TAG' was. Apparently, when encrypting, the 'TAG' is a self-check or 'finger print' of the encrypted string.  One the problems with many encryption algorithms (particularly based on 'XOR') is that when you decrypt you can't really be sure the decrypted message