Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How much faster is symmetric cryptography compared to asymmetric cryptography?

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I know that symmetric crypto is faster when compared to asymmetric crypto, but on average does anyone know about how much faster it would be when encrypting and decrypting a 2MB file?
 
author
Posts: 23956
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I don't think that I ever saw a study on this, so, it would be cool is someone has a pointer to one. Keep in mind that we are trying to compare different configurations, of different algorithms, that may even be affected by the payload. There may not be an available comparison -- and even if there were such a study, the differences could be so vast, that it is like comparing apples and oranges.

I think of it as this... in general, the asymmetric algorithms available today, are generally easier to crack, than the symmetric algorithms available today. To balance that, in general, you will likely use bigger keys with asymmetric algorithms. So, bigger keys, means more processing, which means slower. Arguably, much much slower... but... How much bigger should the keys be? Well, that is your decision. When there is a lot of hand waving, on how secure is the algorithm, along with key sizes, there doesn't seem to be a way to fairly compare... and hence, a fair way to answer your question.

Henry
 
Marshal
Posts: 79535
380
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Henry Wong wrote:. . . How much bigger should the keys be? . . .

I think that changes from year to year. As techniques and hardware get faster, larger keys will become necessary.
 
Campbell Ritchie
Marshal
Posts: 79535
380
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Only fifteen years ago, people were saying that PGP was virtually impossible to break with a 1024‑bit key.
 
this is supposed to be a surprise, but it smells like a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic