Got en/decryption to happen. Doesn't work right yet and crashes when done.