Encrypting and decrypting the join message