How can I make a formula from pattern of numbers?

I am programming in vb6. I need to find:

A1, A2, B1, B2 from N=number and C=constant,

Like what would be A1, A2, B1, B2 using N=609011567 and C=18155944

A = (A1 * 256) + A2 = ?

B = (B1 * 256) + B2 = ?

or what would be A1, A2, B1, B2 using N=609011571 and C=18155944

A = (A1 * 256) + A2 = ?

B = (B1 * 256) + B2 = ?

Here are the 3. pattern I have:

-------------------------------------------------

1. N=609011568 C=18155944 A1=18 A2=213 B1=125 B2=117

A = (A1 * 256) + A2 = 4821

B = (B1 * 256) + B2 = 32117

-------------------------------------------------

2. N=609011569 C=18155944 A1=211 A2=21 B1=188 B2=181

A = (A1 * 256) + A2 = 54037

B = (B1 * 256) + B2 = 48309

-------------------------------------------------

3. N=609011570 C=18155944 A1=147 A2=20 B1=252 B2=180

A = (A1 * 256) + A2 = 37652

B = (B1 * 256) + B2 = 64692

-------------------------------------------------

Is this possible from known data or is more needed?

I am programming in vb6. I need to find:

A1, A2, B1, B2 from N=number and C=constant,

Like what would be A1, A2, B1, B2 using N=609011567 and C=18155944

A = (A1 * 256) + A2 = ?

B = (B1 * 256) + B2 = ?

or what would be A1, A2, B1, B2 using N=609011571 and C=18155944

A = (A1 * 256) + A2 = ?

B = (B1 * 256) + B2 = ?

Here are the 3. pattern I have:

--------------------------

1. N=609011568 C=18155944 A1=18 A2=213 B1=125 B2=117

A = (A1 * 256) + A2 = 4821

B = (B1 * 256) + B2 = 32117

--------------------------

2. N=609011569 C=18155944 A1=211 A2=21 B1=188 B2=181

A = (A1 * 256) + A2 = 54037

B = (B1 * 256) + B2 = 48309

--------------------------

3. N=609011570 C=18155944 A1=147 A2=20 B1=252 B2=180

A = (A1 * 256) + A2 = 37652

B = (B1 * 256) + B2 = 64692

--------------------------

Is this possible from known data or is more needed?

Just looking at it, could be written as a set of simultaneous equations y = mx + b. Where the three equations intersect at some point on the graph.

The slope of the line is m, which in this case could be 256.

You have the constant C = 18155944 in each and the N in equation one is N + 1 in equation two and N + 2 in equation three.

And some more work.

This will help as a start.

There is probably a much easier way to do this, but I just notice from the data given in each of the three cases, that the mathematical formula is y = mx + b. Where x and y would be the x and y axis, with m being the slope and b being a constant.

To illustrate, and it is just to illustrate, I entered the information in each equation form and built a table. The table is attached. If we use the N to equal y and the constant to equal b then with 256 as m or x in the equation, look at the data.

It is interesting to note that if we solve for the unknown in each set of equations, we come up with the same number (or pretty close).

Now that's about the best I can explain it. We probably need another expert to take a look at it.

Picture-3.png

Is that not right?

Some kind of hash table? Or a password/security algorithm?

Where do you get the values like N=609011567 and C=18155944 ??

Why does N seem to increment while C seems to be fixed?

Didn't mean to cause any problems. Let's just go back to what we were working on.

What to you think needs to be done at this point?

You have one or more outputs: What are they?

You have (or are trying to develop) a function or algorithm that will ..... ?

Although through your description of the problem you trying to confuse the reader, the actual problem seem to be very easy and related to simultaneous equations only.

can you provide the problem in clear language excluding all unwanted jargons ,it doesnt matter you doing it for some algoritham or thinking to crack your neighbour's door.

It should provide here with just what input it takes for your problem and what output you except.

You saying you thinking to develop the formula from the pattern of it.

You say you got the set of N=Constant equations and if you have C=Constant, it doesnt seem to be in picture.

The format for the imultaneous equations is y = mx + C

where 'm' is the slope of the line , represented as differential of 'y' wrt 'x' as dy/dx=m

and 'c' is the constant ,represented as a intercept of the line.

Thanks. Exactly my thoughts.

iscode,

And even if we just go from where we are, what are the specific issues/help/trouble with the numbers? I'm assuming the numbers you are referring to are the solutions to the simultaneous equations with the variance arising from the N (or y) number.

In the end, you will only be as safe as your code is protected. I suggest you obfuscate your application in such critical/sensitive areas.

===========

We can help you if you use some different data as your example than what you will actually use in your production code.

Typical scenario...client asks to connect, server sends some data (number/string), the data is used as a salt to the hash of the password which is then hashed and sent to the server, the server repeats the process using the password hash stored on the server, these two hashes are compared.

=================

Your latest post does not seem to be connected with your question. Please supply us with these details.

You have introduced both multiple items/objects you call "control systems" and specific communications channel "serialport".

===============

Something is starting to smell a little 'fishy' with this discussion. I'm not buying the need for secrecy and now we are introduced to two new aspects of your question's actual application(s). I'm not saying something is 'wrong', but I'm reminded of this xkcd cartoon:

http://xkcd.com/463/

But notice that it doesn't make any use of N or C.

There are an infinite number of ways to come up with a sequence that does.

And I do mean "infinite," not just "many."

The coding sequence used for A2/B2 may be more complex.

It appears that the same coding sequence may be used for both values.

But with so little data, it would be foolish even to guess what it might be.

Even if you were to provide more data, I would not be willing to analyze it.

The sole purpose of this post is to suggest that what you are doing is a waste

of time.

__________________

"The main purpose of the question was to see how we read into patterns after I read dr.math link and I wanted to see how we can avoid too obvious pattern in formulas specially related to security and this tells me even though we have patterns it does not mean its tracked back so easy and thats good news."

That was not made clear in your question. The comments you received were clearly addressed to the question you asked...at least our interpretation of your question and its intent.

___________________

"My second purpos was to see the work of the programmer to find the clues and how he analyze the data so I can have that in mind when making securety for my own programs."

You have seen part of that analysis in the comments from uucknaaa and d-glitch. You got what you asked for.

___________________

"Conclusion to my question is No answer from experts,

I have the solution myself so I will request it to be deleted."

Your intent was to have us do a numerical, quasi-cryptanalysis, of some sequences. In that respect, these two experts supplied that. You didn't help us by

* posting a poorly crafted question

* adding information that was not helpful, in fact distracting, to the experts working on the question

* hiding behind some veiled need secrecy when asked about details and context.

___________________

My object to your deletion request comes after reviewing your question and the underlying intent you just posted (#24815233).

I also looked at your prior questions you referenced.

My review does not change my decision to object to your deletion request.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.