Send selective objects in a class over network
I'm working on a server program that will store a user object (username, password, etc.). This object will be saved to the server HD, but I also want to be able to send the object over the network to clients. However, I don't want to send the password hash to the clients. Is there a clever way of choosing which variables are included when serialized or sent over the network? I was thinking about externalizing the objects instead of serializing, but that would mean that the method of serializing the object would be identical for saving to the server HD and sending over the network to client. Thus, the password would be lost on the server on user load.
Richard D. Reavis