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 6542607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:14:53+00:00 2026-05-25T11:14:53+00:00

I know there are several techniques out there to encrypt data. I am not

  • 0

I know there are several techniques out there to encrypt data. I am not familiar with them so I been thinking on a way to make my application more secure. I basically have a server application and a client application. The client application sends data to the server app. anyways if you are probably familiar with this protocol you’ll know that every thing that get’s written to the network stream will be received by the other party. I am basically sending bytes. so my algorithm is something like:

I have a byte array ready to be sent to the server. Modify that byte array. all the bytes that hapend to have values greater than 0 and less than 50 add 5 to them. all the bytes that are greater than 49 and less than 100 add 2 two them. and keep doing the same thing for the rest of the bytes.

and then on the server side I will have the reverse technique.

will this be secure? how will someone sniffing packages will be able to find what I am sending?


Edit

Thanks guys for the help. I been thinking about algorithms and I came up with several ones:

technique 1

Let’s say I want to send the byte[] {5,89,167,233,23,48,79}

first step: I will add a random byte to index 0 of the array:

so now the new byte array is {X, 5, 89, 167, 233, 23,48,79}

let’s assume that x came out to be 75

if is greater than -1 and less than 50 I will apply algorithm number 2 two it. If it is greater than 49 and less than 100 I will apply algorithm 3 two it… etc…

In this case we will use algorithm 3:

so algorithm 3 will basically change the order of every 3 consecutive bytes so the actual byte that I will send is: {X, 167 (last item of the three consecutive bytes), 5 (first item), 89 (second Item), 48 (last item of the next three consecutive bytes), 233 (fist), 48, null,79,null)

get read of the null bytes in order to get {X, 167, 5,89,48,233,48,79}

——->

now the server will get {X, 167, 5,89,48,233,48,79} recall that x was 75 therefore it will apply algorithm 3 to decrypt. it will be basically the same thing in reverse order.

so it will do { 5 (the second item of the first three consecutive bytes), 89 (the last item), 167 (first item of those first three bytes),

233 (the second item of the next three bytes), 23, 48,

79

then the server will have 5,89,167,233,23,48,79

if X will have been 1 for instance I will do the same thing but instead of doing that in chuks of three I would do it on chunks of 2. basically flipping bytes. if x would had been 130 then do the same thing in chunks of 4….


I am not going to place the next technique. I may come up with several techniques I love algorithms lol.

I have to say that I agree with all of you let me show you why…

I think I have to be thinking what a hacker will do. I will probably be a bad hacker since I don’t know about encryption but I thought about this. Ok I am a hacker and I want to be able to see what is being sent through the network. so if I am the hacker and I see {X, 167, 5,89,48,233,48,79} I will not be able to say nothing right. But since I am a clever hacker I get the program that streams those bytes in order to try to figure it out. I will then use the program to send something easy such as a file that contains the bytes {0,1,2,3,4,5,6}

by sending this bytes several times the hacker is going to be able to see stuff like:

{ 45, 1,0,3,2,5,4,6}

then maybe

{44 1,0,3,2,5,4,6}

…. etc

from that point of view now I understand why it might be easier to figure it out.

  • 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-05-25T11:14:54+00:00Added an answer on May 25, 2026 at 11:14 am

    First off, your scheme can’t decrypt since e.g. 47 becomes 52 and 50 becomes 52, also. Second, it’s insecure since anybody with your algorithm can easily decode your ciphertext (well, at least as well as you can, given that not even you can decode all messages). Moreover, a simple frequency-based approach would work since this is essentially a substitution cipher…

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

Sidebar

Related Questions

I know there have been several questions regarding the mousewheel and scrolling; I'm not
I know there are several ways to deploy a .net windows client application: There's
I know there has been several discussions on JavaScript chart/graphics libraries, and there is
I know there are several tools out there that are capable of obfuscating JavaScript
As we know there are several methodology for http connection. My social network application
I know there are several programs out there that will sync files over the
I know there are several similar questions out there such as this one. I
I know there's a way to make the enter-key on the keyboard confirm the
I know there are several plugins that do asynchronous processing. Which one is the
I know there are several libraries to connect to XMPP servers, but is there

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.