Minor refactoring of 'client_encryption.py' contents to a class, also file operations should be cross-platform now. Tests still pass.