updated client and server, error compiling the encrypt function