in reply to Creating a server you can connect to in perl?
As to security, I assume some sort of public key cryptography would be useful. Blowfish maybe?
And a quick look at our very own network programming Q&A would probably help too.
cLive ;-)