Encryption Working

Encryption now works. File writing has not been implemented. Decryption
should work, but has not been tested, but should work.