r/javahelp • • Jan 20 '20

Encrypting messages between clients

So we have an assignment in which we have to create 5 clients that can be messaging each other, through the same port and using an interface, the only thing we can't get right, is the encryption part of the assignment. So, the messages need to be encrypted and decrypted after and before sending and recieving them. How can we do this? Any idea?

17 Upvotes

6 comments sorted by

View all comments

0

u/gregorydgraham Jan 20 '20

A term you might want to search for is “bcrypt”

4

u/nutrecht Lead Software Engineer / EU / 20+ YXP Jan 21 '20

Which is a password hash and not at all what the OP needs.

2

u/gregorydgraham Jan 21 '20

Oops, that’ll teach me for commenting without checking my facts :-S