Added padding and un-padding thanks to @kisom's pycrypto tutorial, as well as the licence for his code