Added option for user to choose server/client encryption