You can encrypt communication between clients (Database Manager CLI, for example) and the X Server using SSL/TLS.
See also:
Concepts of the Database System, Data Encryption