|
Protekt Encryption
The example programs presented here show
how easy it is to add Protekt to any program. In the
listings, Protekt specific lines have been highlighted
like
this. These programs are only examples
and are not necessarily production quality code.
The example server below is a typical
threaded Java network server. It uses one thread to
accept incoming requests and one thread per request
to service it. The code is shown below, with the lines
changed to support TLS highlighted.


As with the server, very little code
needs to be added to use Protekt in the client. Again,
the code is shown below, with the lines changed to support
TLS highlighted.

|