15,616,377 members
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

## Solution 1

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.

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

v6
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