Encryption is now working reliably, fixed warnings do lack of ptr casting and incomplete initializations