Danny Posted March 26, 2006 Report Share Posted March 26, 2006 This is really confusing me now...Its all part of RSA encryption if anyone knows that but you dont really need to know.The values i have are.........p = 61q = 53e = 17Heres the method...[attachmentid=3131]n = pqn = 61*53n= 3233Ǿ = (p-1)(q-1)Ǿ = 3120Then it comes to working out dd = e^-1 mod Ǿd= 17^-1 mod 3120Now i keep getting a decimal answer im guessing im doing the mod bit wrong. The actual answer for d is 2752 but i get some stupid answer.Heres further info if you need it....http://en.wikipedia.org/wiki/RSAHELP Link to comment Share on other sites More sharing options...
OD404 Posted March 27, 2006 Report Share Posted March 27, 2006 Could it be that e is not a constant, rather the appreviation for exponential (logs and all that)? Link to comment Share on other sites More sharing options...
Danny Posted March 27, 2006 Author Report Share Posted March 27, 2006 E is definately a constant but ive solved it now thanks to a worked example i found on my unis intranet.The python line to solve it was simply...d = primes.invmod(phi,e)phi being (p-1)(q-1) Link to comment Share on other sites More sharing options...
Barbra Posted March 27, 2006 Report Share Posted March 27, 2006 wow and to think i get confused with simple algebra Link to comment Share on other sites More sharing options...
Mark W Posted March 27, 2006 Report Share Posted March 27, 2006 Yep, our Danny's more than just a pretty face.Well, a face anyway. Link to comment Share on other sites More sharing options...
BONGO Posted April 24, 2006 Report Share Posted April 24, 2006 last week it took me a minute to work out how many spokes i had in my 48 spoke wheel after snapping 13 lol.Needless to say, i can't help, and have created a useless post. Although it may provide a slight moment of joy while you snigger at my discombobulatinly bad mental arithmatic. Link to comment Share on other sites More sharing options...
anzo Posted April 24, 2006 Report Share Posted April 24, 2006 last week it took me a minute to work out how many spokes i had in my 48 spoke wheel after snapping 13 lol.lolol, calculator out? I'm awful at maths, multiplications are just out of the question...I literally don't know any of them except my 2s, 5s, 10's, and 11 (but only up to 10 on the 11 tables lol). I use a calculator on everything, just so I know I'm right, lol.Additions/Subtractions I'm fine with, I was the kid who sat in maths and when the teacher used to do that 'Answer this question and you can go' thing...I was always last out because she used to do something like 'Matt, square root of 116'...*blank look* and then guess something and everyone in the class looks at you like the scum of the earth, and some smart arse willy at the back would shout the answer out...Days like that made me want to bring a gun to school, but I'm scared that if I did then bob geldof would write another b*****d song about it.Days like that made me want to bring a gun to school, but I'm scared that if I did then bob geldof would write another b*****d song about it.A joke 95% of the forum won't get... Link to comment Share on other sites More sharing options...
Greetings Posted April 24, 2006 Report Share Posted April 24, 2006 funny anzo bumped this topic, I just had it on an IT lecture Link to comment Share on other sites More sharing options...
Recommended Posts