Added file encryption functionality to server