client-server encrypted stream library