Added encrypt functions to all necessary sending and recieving