adding file encryption to client