C# example of encrypted interaction with server API