I am currently a bit stuck, i am currently able to encrypt outgoing messages in Java using the symmetric key generated from the secret key produced by the servers public key.
Subsequently i can unencrypt this into plaintext using the secret key, but ofc this only works on the client who sent it, as no one else knows the secret key, apart from the server.
The server sends the message to all clients that are logged into the system and if any other clients are open, the message is delivered in its encrypted form, but because it doesnt know the secret key, and uses its own secret key, it can't decrypt the message.
What is the best way to make it so that all clients can decrypt all messages sent?
All the clients have there own public keys and secret keys.
I was thinking maybe you could have a saved list of all client public keys, and from this you could generate all the secret keys. Then make a loop that goes through all the secret keys until the ciphertext is decrypted. Is this correct? It seems very time hungry?
Question
+dave164 Subscriber¹
Hey all,
I am currently a bit stuck, i am currently able to encrypt outgoing messages in Java using the symmetric key generated from the secret key produced by the servers public key.
Subsequently i can unencrypt this into plaintext using the secret key, but ofc this only works on the client who sent it, as no one else knows the secret key, apart from the server.
The server sends the message to all clients that are logged into the system and if any other clients are open, the message is delivered in its encrypted form, but because it doesnt know the secret key, and uses its own secret key, it can't decrypt the message.
What is the best way to make it so that all clients can decrypt all messages sent?
All the clients have there own public keys and secret keys.
I was thinking maybe you could have a saved list of all client public keys, and from this you could generate all the secret keys. Then make a loop that goes through all the secret keys until the ciphertext is decrypted. Is this correct? It seems very time hungry?
Thanks
Link to comment
Share on other sites
0 answers to this question
Recommended Posts