
December 26th, 2011, 04:31 PM
|
|
Registered User
|
|
Join Date: Dec 2011
Posts: 11
Time spent in forums: 1 h 32 m 54 sec
Reputation Power: 0
|
|
Quote: | Originally Posted by Zatara27 hi there,
i ve got a strange situation:
when i'm trying to encrypt file (10 mb size) with RSA 512 bit encryption key, it needs about 1 minute for encryption..
and
when i'm trying to encrypt same file with RSA 1024 bit encryption key it needs 22 seconds for encryption...
is it normal? |
Haha.. no that is not normal. What implementation of the RSA algorithm are you using? Some algorithms, like RSA 1024 bit, will have optimisations.
If I were you I would construct a proper test, run a sequence of different files through the two algorithms and log the times taken. Make a graph of it, and you'll be able to discern a pattern. It might be the case that this file fits one of the optimisations very well. And if it turns out 1024 bit encryption is quicker, just enjoy it! All the more security for you 
|