I am writing a prototype of cryptographic system using RMI.
I have a problem, because when I launch two clients, they got a response from one object in the server from OneTimePad class.
So client A recives key that was reserved for client b, because of specific algorithm, this situation could not happen.
Server send to the clients only E and N variable (like in RSA) so i can't serialize OneTimePad object and send it through the network (because it will have all keys in it).
How can I make for each client one object of OneTimePad class?