Click here to Skip to main content
15,915,869 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

Please help me I am new to c# and I need to write a code for RSA using C#. I have seen your project "Image Cryptography" and what I want to do is use a modified RSA not the original one. The following steps are used to used for the modified RSA;

1. select 2 primes and 2 random numbers (p,q,x,y)
2. compute Z1 = p.q.x.y and Z2 = p.q
3. compute phi(z)= (p-1)(q-1)(x-1)(y-1)
4. choose e: 1< e <phi(z)>
5. d *e= 1*mod (Phi (z))

Please help me, what should be changed in the code to satisfy my needs.

Many thanks.
Posted
Comments
ZurdoDev 2-Dec-14 15:29pm    
Where are you stuck?
Member 10884701 2-Dec-14 15:54pm    
Hello,

Thanks for the quick reply, you know the original RSA steps are as follows;
1. select 2 primes (p,q)
2. compute n= p.q
3. compute phi(n)= (p-1)(q-1)
4. choose e: 1< e <phi(n)>
5. d *e= 1*mod (Phi (n))

But in my project I need to use the modified RSA, How can I do the second step which is calculating Z1 and Z2 equations instead of (n).

The link to the Image cryptography is:
http://www.codeproject.com/Articles/723175/Image-Cryptography-using-RSA-Algorithm-in-Csharp

Many thanks.
Kornfeld Eliyahu Peter 2-Dec-14 15:34pm    
It seams you are referencing an article - you better ask the author...
Member 10884701 2-Dec-14 15:58pm    
Thank you for your reply, I thought I was sending the question to the author, anyway I hope you guys could help me, I am really stuck and do not know what to do?

Thanks again.
BillWoodruff 2-Dec-14 19:44pm    
Since the author of that article appears to be still responding to questions, yes, please do ask your question on the article page.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900