15,850,917 members
2.00/5 (1 vote)
See more:
Hi Guys,

I have been spending some pretty good time on RSA Algorithm but i soon found out that it takes long time to encrypt large data.
Now i dunno any asymmetric key algorithm that has much smaller encryption and decryption time compared to other algos...

Thnx
Posted
CPallini 28-Mar-11 3:31am
Are you talking about an algorithm coded by yourself?
Sergey Alexandrovich Kryukov 28-Mar-11 3:38am
Good question. Are you indeed?
--SA

Solution 2

Do you need shorter time in running your application? It will make the time needed for cracking the encryption much shorter. Just a note. You should get some experience on evaluation of run-time through some experiments, to get an idea and figure out your priorities and criteria of acceptability. Before you do it, a problem of alternative methods cannot be correctly formulated; and your Question simply makes no sense if asked without these criteria.

—SA

Solution 1

You should use asymetric encryption only for exchange of symetric encryption key (such as for DES, AES etc.).

Sergey Alexandrovich Kryukov 28-Mar-11 3:33am
No!!!
--SA
CodeHawkz 28-Mar-11 3:43am
@voloda2: It depends on lots of variables, isn't it? :)
@SA: I saw you replying in quite some threads. Very helpful of you, but just on a side note, don't you think you are reacting to people's feedback a bit too much? This isn't a competition to help people and there are people like me here, who are not clever as you are. So please, bear with them.
voloda2 28-Mar-11 3:53am
@PasanRatnayake:
Yes that is. But based on problem specification (encryption of huge amount of data) basically correct and describes how it works using encryption standards (you simply encrypt random symetric key for whathever algorith you want, using asymetric alg). Using RSA for whole bunch of data in my eyes is just wasting of resources - additionaly you can use a library which will do whole process for you (OpenSSL, .NET, CryptoAPI) ...

But I'm not as smart as @SA is...

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

Top Experts
Last 24hrsThis month
 OriginalGriff 105 Pete O'Hanlon 80 M-Badger 60 Richard Deeming 50 merano99 50
 OriginalGriff 135 Pete O'Hanlon 120 Richard MacCutchan 115 k5054 70 M-Badger 60

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