Solved

# Euclid Algorithm

Posted on 2004-10-06
218 Views
I have a cryptography assignement and  I have to find Bob's secret key based on Euclid algorithm. In my Lecture Notes is written:
Given two numbers (r,s), the algorithm outputs a number x such that r*x=1(mod s)

I'm using Java to write the app to solve this. I have r and s and I have to find x.
There is a method in Java to do this, or can anyoane to give any ideas?
0
Question by:edi02
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 2

LVL 18

Expert Comment

ID: 12237508
You may want to post your question in the programming section so the appropriate experts will see it. This is the Windows 2000 operating system section.
0

LVL 18

Expert Comment

ID: 12237514
0

LVL 23

Expert Comment

ID: 12238804
... and experts can't do assignments for users...
http://www.experts-exchange.com/Operating_Systems/Win2000/help.jsp#hi105

you'll have to figure the solution yourself, but feel free to ask for "pointers"
0

LVL 85

Accepted Solution

oBdA earned 125 total points
ID: 12242171
Here's an explanation of the Euclid algorithm: http://www.maths.lse.ac.uk/Courses/MA314/euclid.pdf. Based on this, you should be able to understand the principle, and to create your program. The former is more important: if someone gives you a piece of code, and you present it, you'll probably be asked why it produces the correct output; if you start stuttering away, chances are this will not be recognized as a valid solution ...
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Multi-threading long-running processes can have a significant increase in overall performance and drastically decrease over time it takes for a process to complete. Unfortunately, not all applications support native multi-threading, some by design a…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
###### Suggested Courses
Course of the Month5 days, 18 hours left to enroll