Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone,

I want to compare ECC and RSA.
I have read papers regarding that ECC is faster than RSA and has better security per key bit size.
Can anyone tell me how i can show this using specific code.
Posted
Updated 16-Mar-11 14:25pm
v2

1 solution

It's nearly impossible to compare security. Comparing security means breaking the cipher of real-life size of the key. Do you have any idea how much resources it may take? :-)
Come to think about, the possibility of easy experimental comparison would present a back door (please see the reference below) to the algorithm which is thought to be impossible and would mean the cipher is broken. Isn't that logical? :-)

Now, comparison in performance is absolutely easy. You just use both algorithm for ciphering/deciphering or digital digital signature/validation and simple time key generation and those procedures.

See for more information: http://en.wikipedia.org/wiki/Elliptic_curve_cryptography[^], http://en.wikipedia.org/wiki/RSS[^], see also the references to these articles.

More theoretical knowledge on the basis of related cryptography topics: one-way function: http://en.wikipedia.org/wiki/One-way_function[^], back door: http://en.wikipedia.org/wiki/Backdoor_(computing)[^], public-key cryptography: http://en.wikipedia.org/wiki/Public-key_cryptography[^].

Please be advised that normally CodeProject members are not supposed (and usually not interested) to write any code on your request. The nature of your Question requires some hours of work in order to provide the code you need. You can use, for example, C++ implementation of RSA and ECC: http://en.wikipedia.org/wiki/Crypto%2B%2B[^]. When you have the implemented algorithms, your research of the timing comparison will be easy enough. You can write you research code and ask follow-up Questions if you face any problems.

—SA
 
Share this answer
 
v6
Comments
Espen Harlinn 16-Mar-11 16:10pm    
Good points, my 5
Sergey Alexandrovich Kryukov 16-Mar-11 17:05pm    
Thank you very much.
--SA
rohitketkar 17-Mar-11 10:46am    
Thank you very much . i will definitely follow up.
Sergey Alexandrovich Kryukov 17-Mar-11 13:26pm    
You're welcome.
Are you going to formally accept my answer?
--SA
rohitketkar 18-Mar-11 10:54am    
formally i have already accepted your answer. But i have to do some extra work also.
can you tell me more abt crypto++ and how can i get code to do so.

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