Handling encryption, need to define a protocol