How to set up encryption?

How can I configure the messages sent with smack to be encrypted? Does this encryption mechanism work with Google Talk server? Does it work with Google’'s client?

Thanks for any information


The server should not interfere with this kind of communication (since it only has to forward it unchanged). This is what Google’'s FAQ says about the client:

Google Talk currently does not encrypt chats or calls. But we are working hard to make many improvements to Google Talk while it is in beta, and we plan to fully support encryption of chats and calls before our official release.

One of the many ways to implement encryption in XMPP is documented here: