im currently working on an assignment where i have to create a secure chat room program, it works by one main chat server and then each client can log in and send messages to the server and the server will send the messages back to everyone that is within the room. at the moment everything works, but i have to add encryption which works fine
each client shares a secretkey with the server ( this s generated via DH parameters) my current problem is that one client will use the secretkey, encrypt the message(DES-CBC) and send to the server, but the server sends that encrypted message to everyone who cant decrypt it as they have their own secretkeys with the server.
is there anyway i could someone save a each clients secretkey into an array of some sort, that way i could decrypt the message onceit reaches the server and then encrypt it again with each clients secretkey and send it accordingly?
Edited by initialone1: n/a