I'm writing a small program to help split passwords ( see below for explanation)
I have code to convert text to a int ( text-ascii binary -> dec int)
so in this case the word "test" would = 1952805748
Now the interesting part.(encoding the password)
I would then take x1 = 1952805748 and y1 = 0
then i make up a random point where x2 = 7 and y2 = 142
this will draw a line between x1,y1 and x2,y2 (using Y=mx+B)
I need to how find any random point along the line that these two points create (well call that x3,y3)
If anyone has any ideas i would love to hear them. Im trying to work out the code that both points are ints ( its easier on everyone if we dont have huge decimal points behind each number)
++ The why ++
the general idea is that if you had to split up a password between two parties that one party could possibly figure out the password based on the string they were given
if you use this method they would get a single point each and from that single point it would be mathmaticly impossible to deterimine where the line meets x (x=? y =0) so you could feel safe handing one set of points to your lawyer and one to your wife
they would do the math (entering it into a program) then they would get a number that would be decode to say a password that could decrpt a file with your will or some other sensitve document that you wouldnt want them to access with out the other preseent