Properly pads data to fit algorithm

Also comes with tons of commented out code, none of which works. It's coming close, but all of the code needs to be reworked. All the code in the enc/dec functions that is not commented is most likely final.