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

  • SEARCH
  • Home
  • 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 7909483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T12:26:16+00:00 2026-06-03T12:26:16+00:00

I want to encrypt what I send to a client on a server (not

  • 0

I want to encrypt what I send to a client on a server (not necessarily going for safety, just to prevent someone from easily seeing the data on something like Wireshark).

I’m looking for an algorithm where the result is still a NULL terminated string but can be decrypted back into a utf-8 string quite quickly and easily. The networking library I’m using only lets me send NULL terminated strings to clients, that is why. I’m using a UDP library with reliable packets.

What are some algorithms that could do this sort of thing?

Thanks

  • 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-03T12:26:17+00:00Added an answer on June 3, 2026 at 12:26 pm

    Xor all bytes with some value (or another string).

    Before sending data, replace all ‘\0’ characters with 0xff 0xfe and all 0xff with 0xff 0xff. (you could use other values, obviously)

    When receiving the data, reverse the process – replace 0xff 0xff with 0xff and oxff 0xfe with 0. then xor with key.

    Alternatively you could base64-encode encrypted data to take care of \0 characters.

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

Sidebar

Related Questions

I want to send secure data(strings) from a client to a server. This is
I want to send data from server software to client software, encrypted in such
I want that user/attacker to encrypt the data and send to server. Now I
If I want to send an S/MIME encrypted email using openssl_pkcs7_encrypt from my webserver
i want to make flash programs that send information to the web server that
I'm struggeling with code from this page: http://www.androidsnippets.com/encrypt-decrypt-between-android-and-php I want to send data from
I have been trying to encrypt soap message and send to the server, so
I want to send some info, like user credentials in the SOAP header from
I want the people who uses my software not to be able to send
I want to Encrypt a passwords to this Syntax: CWsodEV5xi9F0D8Vxw1fSZ== I do not know

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.