Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8085679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:12:16+00:00 2026-06-05T18:12:16+00:00

I am working on a client/server application and communication between the two is encrypted.

  • 0

I am working on a client/server application and communication between the two is encrypted. I am using RC2 encryption because the client is embedded and CPU resources are limited. I am using the System.Security.Cryptography.RC2CryptoServiceProvider.CreateDecryptor/CreateEncryptor methods to create the encryption classes.

My problem stems from TCP’s tendency to split up messages into multiple packets. Because the entire message may not arrive in one call of Socket.Receive(), I need to include a packet delimiter at the end of the outbound packet so the receiving end can tell where the packet ends (currently using 0x0D). However, the RC2 encryption ends up creating a 0x0D somewhere in the payload, causing the receiving end to interpret the packet as done. When it tries to decrypt this truncated packet, it fails.

Any advice on how this sort of thing is normally handled? Or even just a character that RC2 encryption is known NOT to produce that I can use as a delimiter?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T18:12:17+00:00Added an answer on June 5, 2026 at 6:12 pm

    Used GregS’s suggestion to prefix the encrypted packet with the length header, and put the packet delimiter after the encrypted packet for sanity checking. Thanks!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a server-client application. The communication is done using webservice webmethods. Both
Because I didn't want to implement a communication protocol for my client-server based application,
I'm working on chat application. The underlying server uses Node.js and the client/server communication
I have client server application using distributed object. some time my code is working
I am working an Client/Server application my client is Flash, and server is C#.
I'm working on a client-server application (.NET 4, WCF) that must support backwards compatibility.
I'm working on a client-server Android application and trying to figure out how to
I am working on a .net rich client server application, the client call the
I have a WCF service as part of a client/server application I am working
I'm working on the client side application of the client/server chat I'm doing for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.